Skip to content

Commit 36387bd

Browse files
committed
chore(fix): fallback table messages
1 parent a377ff4 commit 36387bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/basic/Table/PageLoadingTable.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export interface PageLoadingTableProps<Row, Args>
5353
allItems?: Row[]
5454
callbackToPage?: (data: PaginResult<Row>) => void
5555
allItemsLoadedHint?: string
56-
emptyDataMsg: string
57-
noSearchResultsMsg: string
56+
emptyDataMsg?: string
57+
noSearchResultsMsg?: string
5858
}
5959

6060
const scrollOffset = 350 // Adjust this value for earlier load
@@ -67,8 +67,8 @@ export const PageLoadingTable = function <Row, Args>({
6767
allItems,
6868
callbackToPage,
6969
allItemsLoadedHint = 'All items have been loaded.',
70-
emptyDataMsg,
71-
noSearchResultsMsg,
70+
emptyDataMsg = 'No data found',
71+
noSearchResultsMsg = 'No search results found',
7272
...props
7373
}: PageLoadingTableProps<Row, Args>) {
7474
const [page, setPage] = useState(0)

0 commit comments

Comments
 (0)