refactor(openModal): Umbenennung von openModal in openCreateFilterModal
This commit is contained in:
parent
15eb1e87e8
commit
c1c7d6baaa
@ -39,7 +39,7 @@ export function DocSearchView({ docs }: Props) {
|
|||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const [openModal, setOpenModal] = useState(false);
|
const [openCreateFilterModal, setOpenCreateFilterModal] = useState(false);
|
||||||
|
|
||||||
//#region example components
|
//#region example components
|
||||||
// <Box
|
// <Box
|
||||||
@ -80,14 +80,14 @@ export function DocSearchView({ docs }: Props) {
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
color="inherit"
|
color="inherit"
|
||||||
startIcon={<Iconify icon="mingcute:add-line" />}
|
startIcon={<Iconify icon="mingcute:add-line" />}
|
||||||
onClick={() => setOpenModal(true)}
|
onClick={() => setOpenCreateFilterModal(true)}
|
||||||
loading={openModal}
|
loading={openCreateFilterModal}
|
||||||
>
|
>
|
||||||
New filter
|
New filter
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<CreateFilterModal open={openModal} handleClose={() => setOpenModal(false)} />
|
<CreateFilterModal open={openCreateFilterModal} handleClose={() => setOpenCreateFilterModal(false)} />
|
||||||
|
|
||||||
<Grid container spacing={3}>
|
<Grid container spacing={3}>
|
||||||
{filters.map((filter, index) => {
|
{filters.map((filter, index) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user