fix(frontend): remove unused ContentTypeDialog component

This commit is contained in:
yassinedorbozgithub 2024-10-03 18:00:52 +01:00
parent b3426e3f50
commit f40c39c554

View File

@ -41,7 +41,6 @@ export const ContentTypes = () => {
const router = useRouter(); const router = useRouter();
// Dialog Controls // Dialog Controls
const addDialogCtl = useDialog<IContentType>(false); const addDialogCtl = useDialog<IContentType>(false);
const editDialogCtl = useDialog<IContentType>(false);
const deleteDialogCtl = useDialog<string>(false); const deleteDialogCtl = useDialog<string>(false);
const fieldsDialogCtl = useDialog<IContentType>(false); const fieldsDialogCtl = useDialog<IContentType>(false);
// data fetching // data fetching
@ -119,7 +118,6 @@ export const ContentTypes = () => {
<Grid item xs={12}> <Grid item xs={12}>
<Paper> <Paper>
<ContentTypeDialog {...getDisplayDialogs(addDialogCtl)} /> <ContentTypeDialog {...getDisplayDialogs(addDialogCtl)} />
<ContentTypeDialog {...getDisplayDialogs(editDialogCtl)} />
<DeleteDialog <DeleteDialog
{...deleteDialogCtl} {...deleteDialogCtl}
callback={() => { callback={() => {