File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -30,24 +30,23 @@ export const OperationList: ComponentType<UseOperationsParams & { neoLayout?: bo
30
30
31
31
const { neoLayout = true } = props
32
32
33
- let items : ReactNode = operationsWithDoc . map ( ( { operation, doc } ) => (
34
- < OperationCard
35
- operation = { operation }
36
- operationDoc = { doc }
37
- key = { operation . id }
38
- />
39
- ) )
40
- if ( neoLayout ) {
41
- items = < div className = 'grid gap-4' style = { { gridTemplateColumns : "repeat(auto-fill, minmax(20rem, 1fr)" } } >
33
+ const items : ReactNode = neoLayout ?
34
+ < div className = 'grid gap-4' style = { { gridTemplateColumns : "repeat(auto-fill, minmax(20rem, 1fr)" } } >
42
35
{ operationsWithDoc . map ( ( { operation, doc } ) => (
43
36
< NeoOperationCard
44
37
operation = { operation }
45
38
operationDoc = { doc }
46
39
key = { operation . id }
47
40
/>
48
41
) ) }
49
- </ div >
50
- }
42
+ </ div > :
43
+ operationsWithDoc . map ( ( { operation, doc } ) => (
44
+ < OperationCard
45
+ operation = { operation }
46
+ operationDoc = { doc }
47
+ key = { operation . id }
48
+ />
49
+ ) )
51
50
52
51
return (
53
52
< >
You can’t perform that action at this time.
0 commit comments