-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(tables): remove useless generated doc exports from DataTable story
- Loading branch information
1 parent
1e1f0d2
commit e8ff655
Showing
3 changed files
with
71 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { ColumnDef } from '@tanstack/react-table' | ||
|
||
export const FAKE_BASIC_TABLE_COLUMNS: Array<ColumnDef<FakeBasicTableDataItem>> = [ | ||
{ | ||
accessorFn: row => row.id, | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
enableSorting: false, | ||
header: () => 'ID', | ||
id: 'id', | ||
size: 64 | ||
}, | ||
{ | ||
accessorFn: row => row.lastName, | ||
header: () => 'Last Name', | ||
id: 'lastName' | ||
}, | ||
{ | ||
accessorFn: row => row.firstName, | ||
header: () => 'First Name', | ||
id: 'firstName', | ||
size: 240 | ||
} | ||
] | ||
|
||
export type FakeBasicTableDataItem = { | ||
firstName: string | ||
id: number | ||
lastName: string | ||
} | ||
export const FAKE_BASIC_TABLE_DATA: FakeBasicTableDataItem[] = [ | ||
{ firstName: 'Alice', id: 1, lastName: 'Smith' }, | ||
{ firstName: 'Bob', id: 2, lastName: 'Johnson' }, | ||
{ firstName: 'Charlie', id: 3, lastName: 'Williams' }, | ||
{ firstName: 'David', id: 4, lastName: 'Brown' }, | ||
{ firstName: 'Emily', id: 5, lastName: 'Jones' }, | ||
{ firstName: 'Fiona', id: 6, lastName: 'Garcia' }, | ||
{ firstName: 'George', id: 7, lastName: 'Miller' }, | ||
{ firstName: 'Hannah', id: 8, lastName: 'Davis' }, | ||
{ firstName: 'Ivan', id: 9, lastName: 'Rodriguez' }, | ||
{ firstName: 'Jenny', id: 10, lastName: 'Martinez' } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters