Skip to content

Commit 3b2888e

Browse files
committed
fix the type of table empty state props
1 parent 01f01a8 commit 3b2888e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/EmptyState.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from 'react'
77
import styled from 'styled-components'
88

9-
type EmptyStateProps = ComponentProps<typeof EmptyStateSC> & {
9+
export type EmptyStateProps = ComponentProps<typeof EmptyStateSC> & {
1010
message: string
1111
description?: string
1212
icon?: ReactElement

src/components/Table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import Button from './Button'
4141
import CaretUpIcon from './icons/CaretUpIcon'
4242
import ArrowRightIcon from './icons/ArrowRightIcon'
4343
import { FillLevelProvider } from './contexts/FillLevelContext'
44-
import EmptyState from './EmptyState'
44+
import EmptyState, { type EmptyStateProps } from './EmptyState'
4545
import { Spinner } from './Spinner'
4646

4747
export type TableProps = DivProps & {
@@ -64,7 +64,7 @@ export type TableProps = DivProps & {
6464
>
6565
reactTableOptions?: Partial<Omit<TableOptions<any>, 'data' | 'columns'>>
6666
onRowClick?: (e: MouseEvent<HTMLTableRowElement>, row: Row<any>) => void
67-
emptyStateProps?: ComponentProps<typeof EmptyState>
67+
emptyStateProps?: EmptyStateProps
6868
hasNextPage?: boolean
6969
fetchNextPage?: () => void
7070
isFetchingNextPage?: boolean

0 commit comments

Comments
 (0)