feat : update group

This commit is contained in:
lukman
2024-08-01 09:54:57 +08:00
parent 89281f286d
commit 86b0e93121
6 changed files with 77 additions and 72 deletions

View File

@@ -6,6 +6,7 @@ import { HiMagnifyingGlass } from "react-icons/hi2";
import DrawerDetailPosition from "./drawer_detail_position";
import toast from "react-hot-toast";
import _ from "lodash";
import { useShallowEffect } from "@mantine/hooks";
type dataPosition = {
name: string;
@@ -38,7 +39,7 @@ export default function ListPositionActive({ status }: { status: boolean }) {
}
}
useEffect(() => {
useShallowEffect(() => {
getAllPosition();
}, [status])