fix(frontend): include minor updates

This commit is contained in:
yassinedorbozgithub 2025-02-03 15:28:05 +01:00
parent 7ef81e7999
commit fce6320382
3 changed files with 4 additions and 6 deletions

View File

@ -6,12 +6,10 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/
import React, { BaseSyntheticEvent, FC, useEffect } from "react";
import { useForm } from "react-hook-form";
import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer";
import { ContentItem } from "@/app-components/dialogs/layouts/ContentItem";
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
import { Input } from "@/app-components/inputs/Input";
import { useCreate } from "@/hooks/crud/useCreate";
import { useUpdate } from "@/hooks/crud/useUpdate";

View File

@ -6,6 +6,7 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/
import { FC } from "react";
import { FormDialog } from "@/app-components/dialogs";
import { useTranslate } from "@/hooks/useTranslate";
@ -14,10 +15,10 @@ import { ComponentFormDialogProps } from "@/types/common/dialogs.types";
import { CategoryForm } from "./CategoryForm";
export const CategoryFormDialog = <T extends ICategory = ICategory>({
export const CategoryFormDialog: FC<ComponentFormDialogProps<ICategory>> = ({
payload,
...rest
}: ComponentFormDialogProps<T>) => {
}) => {
const { t } = useTranslate();
return (

View File

@ -10,7 +10,6 @@ import { DialogProps as MuiDialogProps } from "@mui/material";
import { BaseSyntheticEvent } from "react";
// context
export interface OpenDialogOptions<R> {
/**
* A function that is called before closing the dialog closes. The dialog