File tree 1 file changed +6
-2
lines changed
component-overview/examples/tabs
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ import { IconCard } from '@sb1/ffe-cards-react';
8
8
display : 'none' ,
9
9
} ;
10
10
11
+ const spacing = {
12
+ marginTop : '8px' ,
13
+ } ;
14
+
11
15
const loan = { house : 'house' , car : 'car' } ;
12
16
const [ activeTabId , setActiveTabId ] = useState ( loan . house ) ;
13
17
@@ -34,7 +38,7 @@ import { IconCard } from '@sb1/ffe-cards-react';
34
38
< IconCard
35
39
icon = { < HusIkon /> }
36
40
id = { loan . house }
37
- style = { activeTabId === loan . house ? null : displayNone }
41
+ style = { activeTabId === loan . house ? spacing : displayNone }
38
42
>
39
43
{ ( { Title, Subtext } ) => (
40
44
< >
@@ -47,7 +51,7 @@ import { IconCard } from '@sb1/ffe-cards-react';
47
51
< IconCard
48
52
icon = { < BilIkon /> }
49
53
id = { loan . car }
50
- style = { activeTabId === loan . car ? null : displayNone }
54
+ style = { activeTabId === loan . car ? spacing : displayNone }
51
55
>
52
56
{ ( { Title, Subtext } ) => (
53
57
< >
You can’t perform that action at this time.
0 commit comments