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';
2
2
3
3
import { CompactTable } from '@table-library/react-table-library/compact' ;
4
4
import { useTheme } from '@table-library/react-table-library/theme' ;
5
+ import { getTheme } from '@table-library/react-table-library/baseline' ;
5
6
6
7
import { DocumentationSee } from '../documentation' ;
7
8
import { nodes } from '../data' ;
@@ -11,20 +12,23 @@ const key = 'Theme';
11
12
const Component = ( ) => {
12
13
const data = { nodes } ;
13
14
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 : `
24
19
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
+ ] ) ;
28
32
29
33
const COLUMNS = [
30
34
{ label : 'Task' , renderCell : ( item ) => item . name } ,
You can’t perform that action at this time.
0 commit comments