♻️ Regenerate client to use UUID instead of id integers and update frontend (#1281)

This commit is contained in:
Abdul
2024-08-01 11:48:00 -07:00
committed by GitHub
parent 19049f2a74
commit 36767344aa
5 changed files with 80 additions and 41 deletions

View File

@@ -16,7 +16,7 @@ import useCustomToast from "../../hooks/useCustomToast"
interface DeleteProps {
type: string
id: number
id: string
isOpen: boolean
onClose: () => void
}
@@ -30,7 +30,7 @@ const Delete = ({ type, id, isOpen, onClose }: DeleteProps) => {
formState: { isSubmitting },
} = useForm()
const deleteEntity = async (id: number) => {
const deleteEntity = async (id: string) => {
if (type === "Item") {
await ItemsService.deleteItem({ id: id })
} else if (type === "User") {