mirror of
https://github.com/hexastack/hexabot
synced 2025-04-18 13:28:50 +00:00
fix(frontend): include minor changes
This commit is contained in:
parent
b7351e532f
commit
72ffde9d4e
@ -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).
|
||||
*/
|
||||
|
||||
import React, { FC, useEffect } from "react";
|
||||
import { FC, Fragment, useEffect } from "react";
|
||||
import { useForm } from "react-hook-form";
|
||||
|
||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
||||
@ -21,7 +21,7 @@ import { ComponentFormProps } from "@/types/common/dialogs.types";
|
||||
|
||||
export const CategoryForm: FC<ComponentFormProps<ICategory>> = ({
|
||||
data,
|
||||
Wrapper = React.Fragment,
|
||||
Wrapper = Fragment,
|
||||
WrapperProps,
|
||||
...rest
|
||||
}) => {
|
||||
|
@ -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).
|
||||
*/
|
||||
|
||||
|
||||
import AddIcon from "@mui/icons-material/Add";
|
||||
import DeleteIcon from "@mui/icons-material/Delete";
|
||||
import FolderIcon from "@mui/icons-material/Folder";
|
||||
@ -42,6 +41,7 @@ import { CategoryFormDialog } from "./CategoryFormDialog";
|
||||
export const Categories = () => {
|
||||
const { t } = useTranslate();
|
||||
const { toast } = useToast();
|
||||
const dialogs = useDialogs();
|
||||
const hasPermission = useHasPermission();
|
||||
const { onSearch, searchPayload } = useSearch<ICategory>({
|
||||
$iLike: ["label"],
|
||||
@ -128,7 +128,6 @@ export const Categories = () => {
|
||||
const handleSelectionChange = (selection: GridRowSelectionModel) => {
|
||||
setSelectedCategories(selection as string[]);
|
||||
};
|
||||
const dialogs = useDialogs();
|
||||
|
||||
return (
|
||||
<Grid container gap={3} flexDirection="column">
|
||||
|
Loading…
Reference in New Issue
Block a user