File tree 4 files changed +20
-12
lines changed
packages/atomic-react/src/components
4 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ export const ListWrapper: React.FC<WrapperProps> = (props) => {
44
44
return renderToString ( templateResult . contentTemplate ) ;
45
45
} else {
46
46
createRoot ( root ) . render ( templateResult ) ;
47
- createRoot ( linkContainer ! ) . render (
48
- < AtomicProductLink > </ AtomicProductLink >
49
- ) ;
47
+ otherProps . display === 'grid'
48
+ ? createRoot ( linkContainer ! ) . render (
49
+ < AtomicProductLink > </ AtomicProductLink >
50
+ )
51
+ : createRoot ( linkContainer ! ) . render ( < > </ > ) ;
50
52
return renderToString ( templateResult ) ;
51
53
}
52
54
}
Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ export const ListWrapper: React.FC<WrapperProps> = (props) => {
44
44
return renderToString ( templateResult . contentTemplate ) ;
45
45
} else {
46
46
createRoot ( root ) . render ( templateResult ) ;
47
- createRoot ( linkContainer ! ) . render (
48
- < AtomicProductLink > </ AtomicProductLink >
49
- ) ;
47
+ otherProps . display === 'grid'
48
+ ? createRoot ( linkContainer ! ) . render (
49
+ < AtomicProductLink > </ AtomicProductLink >
50
+ )
51
+ : createRoot ( linkContainer ! ) . render ( < > </ > ) ;
50
52
return renderToString ( templateResult ) ;
51
53
}
52
54
}
Original file line number Diff line number Diff line change @@ -42,9 +42,11 @@ export const RecsListWrapper: React.FC<WrapperProps> = (props) => {
42
42
return renderToString ( templateResult . contentTemplate ) ;
43
43
} else {
44
44
createRoot ( root ) . render ( templateResult ) ;
45
- createRoot ( linkContainer ! ) . render (
46
- < AtomicResultLink > </ AtomicResultLink >
47
- ) ;
45
+ otherProps . display === 'grid'
46
+ ? createRoot ( linkContainer ! ) . render (
47
+ < AtomicResultLink > </ AtomicResultLink >
48
+ )
49
+ : createRoot ( linkContainer ! ) . render ( < > </ > ) ;
48
50
return renderToString ( templateResult ) ;
49
51
}
50
52
} ) ;
Original file line number Diff line number Diff line change @@ -42,9 +42,11 @@ export const ResultListWrapper: React.FC<WrapperProps> = (props) => {
42
42
return renderToString ( templateResult . contentTemplate ) ;
43
43
} else {
44
44
createRoot ( root ) . render ( templateResult ) ;
45
- createRoot ( linkContainer ! ) . render (
46
- < AtomicResultLink > </ AtomicResultLink >
47
- ) ;
45
+ otherProps . display === 'grid'
46
+ ? createRoot ( linkContainer ! ) . render (
47
+ < AtomicResultLink > </ AtomicResultLink >
48
+ )
49
+ : createRoot ( linkContainer ! ) . render ( < > </ > ) ;
48
50
return renderToString ( templateResult ) ;
49
51
}
50
52
} ) ;
You can’t perform that action at this time.
0 commit comments