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). * 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 React, { BaseSyntheticEvent, FC, useEffect } from "react";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";
import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
import { ContentItem } from "@/app-components/dialogs/layouts/ContentItem";
import { Input } from "@/app-components/inputs/Input"; import { Input } from "@/app-components/inputs/Input";
import { useCreate } from "@/hooks/crud/useCreate"; import { useCreate } from "@/hooks/crud/useCreate";
import { useUpdate } from "@/hooks/crud/useUpdate"; 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). * 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 { FormDialog } from "@/app-components/dialogs";
import { useTranslate } from "@/hooks/useTranslate"; import { useTranslate } from "@/hooks/useTranslate";
@ -14,10 +15,10 @@ import { ComponentFormDialogProps } from "@/types/common/dialogs.types";
import { CategoryForm } from "./CategoryForm"; import { CategoryForm } from "./CategoryForm";
export const CategoryFormDialog = <T extends ICategory = ICategory>({ export const CategoryFormDialog: FC<ComponentFormDialogProps<ICategory>> = ({
payload, payload,
...rest ...rest
}: ComponentFormDialogProps<T>) => { }) => {
const { t } = useTranslate(); const { t } = useTranslate();
return ( return (

View File

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