Skip to content

Commit

Permalink
Revert "fix datagrid searchbar not showing"
Browse files Browse the repository at this point in the history
This reverts commit bc1723e.
  • Loading branch information
utkarsh-tf141 committed Apr 4, 2024
1 parent 3649bdf commit 3c74fe9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/DataGrid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
GridToolbarColumnsButton,
GridToolbarContainer,
GridToolbarFilterButton,
GridToolbarQuickFilter,
MuiEvent,
} from "@mui/x-data-grid";
import Button from "@mui/material/Button";
Expand Down Expand Up @@ -65,11 +64,6 @@ function CustomToolbar({ handleDownload }: { handleDownload: () => void }) {
<GridToolbarColumnsButton />
<GridToolbarFilterButton />
<Button startIcon={<DownloadIcon />} onClick={handleDownload} />
<Box flexGrow={1} />
<GridToolbarQuickFilter
showQuickFilter
quickFilterProps={{ debounceMs: 500 }}
/>
</GridToolbarContainer>
);
}
Expand Down Expand Up @@ -158,6 +152,12 @@ function Index({
Toolbar: () => <CustomToolbar handleDownload={handleDownload} />,
NoRowsOverlay: CustomNoRowsOverlay,
}}
componentsProps={{
toolbar: {
showQuickFilter: true,
quickFilterProps: { debounceMs: 500 },
},
}}
disableDensitySelector
pageSize={pageSize}
onPageSizeChange={(newPageSize) => setPageSize(newPageSize)}
Expand Down

0 comments on commit 3c74fe9

Please sign in to comment.