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
|
||||
// <Box
|
||||
@ -80,14 +80,14 @@ export function DocSearchView({ docs }: Props) {
|
||||
variant="contained"
|
||||
color="inherit"
|
||||
startIcon={<Iconify icon="mingcute:add-line" />}
|
||||
onClick={() => setOpenModal(true)}
|
||||
loading={openModal}
|
||||
onClick={() => setOpenCreateFilterModal(true)}
|
||||
loading={openCreateFilterModal}
|
||||
>
|
||||
New filter
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
<CreateFilterModal open={openModal} handleClose={() => setOpenModal(false)} />
|
||||
<CreateFilterModal open={openCreateFilterModal} handleClose={() => setOpenCreateFilterModal(false)} />
|
||||
|
||||
<Grid container spacing={3}>
|
||||
{filters.map((filter, index) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user