Skip to content

Commit 3f7855e

Browse files
committed
1 parent 3c57b41 commit 3f7855e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/compass-components/src/components/leafygreen.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import {
4646
Cell,
4747
HeaderCell,
4848
HeaderRow,
49-
ExpandedContent,
49+
ExpandedContent as LGExpandedContent,
5050
Row,
5151
Table,
5252
TableHead,
@@ -55,9 +55,16 @@ import {
5555
useLeafyGreenTable,
5656
getExpandedRowModel,
5757
getFilteredRowModel,
58+
type ExpandedContentProps,
5859
} from '@leafygreen-ui/table';
5960
import type { Row as LgTableRowType } from '@tanstack/table-core'; // TODO(COMPASS-8437): import from LG
6061

62+
// TODO: Delete once LG-5589 is resolved
63+
interface ExpandedContentComponentType {
64+
<T extends unknown>(props: ExpandedContentProps<T>): React.JSX.Element | null;
65+
}
66+
const ExpandedContent = LGExpandedContent as ExpandedContentComponentType;
67+
6168
export type {
6269
LGColumnDef,
6370
HeaderGroup,

0 commit comments

Comments
 (0)