Commit 063f8aa 1 parent e582db6 commit 063f8aa Copy full SHA for 063f8aa
File tree 1 file changed +6
-11
lines changed
src/sub-blocks/LayoutItem
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
- import React , { Fragment , useMemo } from 'react' ;
1
+ import React , { useMemo } from 'react' ;
2
2
3
3
import { useUniqId } from '@gravity-ui/uikit' ;
4
4
@@ -66,16 +66,11 @@ const LayoutItem = ({
66
66
< Content { ...contentProps } titleId = { titleId } />
67
67
</ IconWrapper >
68
68
</ div >
69
- { areControlsInFooter && ( links || buttons ) && (
70
- < Fragment >
71
- < Links className = { b ( 'links' ) } size = "s" links = { links } titleId = { titleId } />
72
- < Buttons
73
- className = { b ( 'buttons' ) }
74
- size = "s"
75
- buttons = { buttons }
76
- titleId = { titleId }
77
- />
78
- </ Fragment >
69
+ { areControlsInFooter && links && (
70
+ < Links className = { b ( 'links' ) } size = "s" links = { links } titleId = { titleId } />
71
+ ) }
72
+ { areControlsInFooter && buttons && (
73
+ < Buttons className = { b ( 'buttons' ) } size = "s" buttons = { buttons } titleId = { titleId } />
79
74
) }
80
75
</ div >
81
76
) ;
You can’t perform that action at this time.
0 commit comments