Skip to content

Commit c99ab31

Browse files
committed
Fix DataGrid JSX nesting
1 parent 5306413 commit c99ab31

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

src/components/common/DataGrid.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,22 +127,21 @@ export function DataGrid({
127127
renderEmpty={renderEmpty}
128128
>
129129
{data && (
130-
<div
131-
style={{
132-
display: 'grid',
133-
gridTemplateColumns: 'minmax(0, 1fr)',
134-
overflowX: 'auto',
135-
}}
136-
>
130+
<div
131+
style={{
132+
display: 'grid',
133+
gridTemplateColumns: 'minmax(0, 1fr)',
134+
overflowX: 'auto',
135+
}}
136+
>
137137
<Column>
138138
{isValidElement(child)
139139
? cloneElement(child as ReactElement<any>, { displayMode })
140140
: child}
141141
</Column>
142-
</div>
143-
)}
144-
</LoadingPanel>
145-
</Column>
142+
</div>
143+
)}
144+
</LoadingPanel>
146145
{showPager && (
147146
<Row marginTop="4">
148147
<Pager

0 commit comments

Comments
 (0)