Skip to content

Commit

Permalink
Update a demo
Browse files Browse the repository at this point in the history
  • Loading branch information
MBilalShafi committed Jan 17, 2023
1 parent 09978f9 commit a6a7d5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/data/data-grid/state/DirectSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ export default function DirectSelector() {
</Button>
<Box sx={{ height: 400, mt: 1 }}>
<DataGrid
{...data}
apiRef={apiRef}
pageSizeOptions={[10]}
initialState={{
...data.initialState,
pagination: {
paginationModel: {
pageSize: 10,
},
},
}}
{...data}
/>
</Box>
</Box>
Expand Down
3 changes: 2 additions & 1 deletion docs/data/data-grid/state/DirectSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ export default function DirectSelector() {
</Button>
<Box sx={{ height: 400, mt: 1 }}>
<DataGrid
{...data}
apiRef={apiRef}
pageSizeOptions={[10]}
initialState={{
...data.initialState,
pagination: {
paginationModel: {
pageSize: 10,
},
},
}}
{...data}
/>
</Box>
</Box>
Expand Down

0 comments on commit a6a7d5a

Please sign in to comment.