Skip to content

Commit

Permalink
fix the type of table empty state props
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Oct 18, 2024
1 parent 01f01a8 commit 3b2888e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/EmptyState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from 'react'
import styled from 'styled-components'

type EmptyStateProps = ComponentProps<typeof EmptyStateSC> & {
export type EmptyStateProps = ComponentProps<typeof EmptyStateSC> & {
message: string
description?: string
icon?: ReactElement
Expand Down
4 changes: 2 additions & 2 deletions src/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import Button from './Button'
import CaretUpIcon from './icons/CaretUpIcon'
import ArrowRightIcon from './icons/ArrowRightIcon'
import { FillLevelProvider } from './contexts/FillLevelContext'
import EmptyState from './EmptyState'
import EmptyState, { type EmptyStateProps } from './EmptyState'
import { Spinner } from './Spinner'

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

0 comments on commit 3b2888e

Please sign in to comment.