fix(frontend): include minor changes

This commit is contained in:
yassinedorbozgithub 2025-02-04 11:44:04 +01:00
parent b7351e532f
commit 72ffde9d4e
2 changed files with 3 additions and 4 deletions

View File

@ -6,7 +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 React, { FC, useEffect } from "react"; import { FC, Fragment, useEffect } from "react";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";
import { ContentContainer, ContentItem } from "@/app-components/dialogs/"; import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
@ -21,7 +21,7 @@ import { ComponentFormProps } from "@/types/common/dialogs.types";
export const CategoryForm: FC<ComponentFormProps<ICategory>> = ({ export const CategoryForm: FC<ComponentFormProps<ICategory>> = ({
data, data,
Wrapper = React.Fragment, Wrapper = Fragment,
WrapperProps, WrapperProps,
...rest ...rest
}) => { }) => {

View File

@ -6,7 +6,6 @@
* 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 AddIcon from "@mui/icons-material/Add"; import AddIcon from "@mui/icons-material/Add";
import DeleteIcon from "@mui/icons-material/Delete"; import DeleteIcon from "@mui/icons-material/Delete";
import FolderIcon from "@mui/icons-material/Folder"; import FolderIcon from "@mui/icons-material/Folder";
@ -42,6 +41,7 @@ import { CategoryFormDialog } from "./CategoryFormDialog";
export const Categories = () => { export const Categories = () => {
const { t } = useTranslate(); const { t } = useTranslate();
const { toast } = useToast(); const { toast } = useToast();
const dialogs = useDialogs();
const hasPermission = useHasPermission(); const hasPermission = useHasPermission();
const { onSearch, searchPayload } = useSearch<ICategory>({ const { onSearch, searchPayload } = useSearch<ICategory>({
$iLike: ["label"], $iLike: ["label"],
@ -128,7 +128,6 @@ export const Categories = () => {
const handleSelectionChange = (selection: GridRowSelectionModel) => { const handleSelectionChange = (selection: GridRowSelectionModel) => {
setSelectedCategories(selection as string[]); setSelectedCategories(selection as string[]);
}; };
const dialogs = useDialogs();
return ( return (
<Grid container gap={3} flexDirection="column"> <Grid container gap={3} flexDirection="column">