File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ const NavigationCardStandaloneComponent = (
36
36
return (
37
37
// Can not be spread -> styled component breaks
38
38
< NavigationCardStyled
39
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
40
- ref = { ref as any }
39
+ ref = { ref as React . ForwardedRef < HTMLButtonElement > }
41
40
aria-disabled = { props [ 'aria-disabled' ] }
42
41
as = { props . url ? props . component : 'button' }
43
42
className = { props . className }
Original file line number Diff line number Diff line change @@ -49,9 +49,11 @@ const NavigationRowStandaloneComponent = (
49
49
/>
50
50
) }
51
51
</ IconAndIconHighlightedContainerStyled >
52
- < DecorativeElementContainerStyled styles = { props . styles } >
53
- { props . decorativeElement }
54
- </ DecorativeElementContainerStyled >
52
+ { props . decorativeElement && (
53
+ < DecorativeElementContainerStyled styles = { props . styles } >
54
+ { props . decorativeElement }
55
+ </ DecorativeElementContainerStyled >
56
+ ) }
55
57
< TextSectionStyled styles = { props . styles } >
56
58
{ props . text && (
57
59
< Text
You can’t perform that action at this time.
0 commit comments