Skip to content

Commit

Permalink
Addressed review comments (deephaven#1909)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Apr 16, 2024
1 parent a65e539 commit 95a4744
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
10 changes: 8 additions & 2 deletions packages/code-studio/src/styleguide/ListViews.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import React, { useCallback, useState } from 'react';
import { Grid, Item, ListView, ItemKey, Text } from '@deephaven/components';
import {
Grid,
Icon,
Item,
ListView,
ItemKey,
Text,
} from '@deephaven/components';
import { vsAccount, vsPerson } from '@deephaven/icons';
import { Icon } from '@adobe/react-spectrum';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { generateNormalizedItems, sampleSectionIdAndClasses } from './utils';

Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/spectrum/icons.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// eslint-disable-next-line import/prefer-default-export
export { Icon } from '@adobe/react-spectrum';
1 change: 1 addition & 0 deletions packages/components/src/spectrum/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export * from './collections';
export * from './content';
export * from './dateAndTime';
export * from './forms';
export * from './icons';
export * from './layout';
export * from './navigation';
export * from './overlays';
Expand Down
6 changes: 3 additions & 3 deletions packages/components/src/spectrum/listView/ListView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMemo } from 'react';
import cl from 'classnames';
import {
Flex,
ListView as SpectrumListView,
SpectrumListViewProps,
} from '@adobe/react-spectrum';
Expand All @@ -10,7 +10,7 @@ import {
useContentRect,
useOnScrollRef,
} from '@deephaven/react-hooks';
import cl from 'classnames';
import { Flex } from '../layout';
import {
ItemElementOrPrimitive,
ItemKey,
Expand Down Expand Up @@ -100,7 +100,7 @@ export function ListView({

// Spectrum ListView crashes when it has zero height. Track the contentRect
// of the parent container and only render the ListView when it has a non-zero
// height.
// height. See https://github.com/adobe/react-spectrum/issues/6213
const { ref: contentRectRef, contentRect } = useContentRect(
extractSpectrumHTMLElement
);
Expand Down

0 comments on commit 95a4744

Please sign in to comment.