File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed
.storybook/stories/Compact Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import * as React from 'react';
22
33import { CompactTable } from '@table-library/react-table-library/compact' ;
44import { useTheme } from '@table-library/react-table-library/theme' ;
5+ import { getTheme } from '@table-library/react-table-library/baseline' ;
56
67import { DocumentationSee } from '../documentation' ;
78import { nodes } from '../data' ;
@@ -11,20 +12,23 @@ const key = 'Theme';
1112const Component = ( ) => {
1213 const data = { nodes } ;
1314
14- const theme = useTheme ( {
15- HeaderRow : `
16- background-color: #eaf5fd;
17- ` ,
18- Row : `
19- &:nth-of-type(odd) {
20- background-color: #d2e9fb;
21- }
22-
23- &:nth-of-type(even) {
15+ const theme = useTheme ( [
16+ getTheme ( ) ,
17+ {
18+ HeaderRow : `
2419 background-color: #eaf5fd;
25- }
26- ` ,
27- } ) ;
20+ ` ,
21+ Row : `
22+ &:nth-of-type(odd) {
23+ background-color: #d2e9fb;
24+ }
25+
26+ &:nth-of-type(even) {
27+ background-color: #eaf5fd;
28+ }
29+ ` ,
30+ } ,
31+ ] ) ;
2832
2933 const COLUMNS = [
3034 { label : 'Task' , renderCell : ( item ) => item . name } ,
You can’t perform that action at this time.
0 commit comments