Refactor requests, refactor users, add home dashboard
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { deleteItems } from "@/actions/deleteItem";
|
// import { deleteItems } from "@/actions/deleteItem";
|
||||||
import { PencilIcon } from "lucide-react";
|
import { PencilIcon } from "lucide-react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Button } from "../ui/button";
|
import { Button } from "../ui/button";
|
||||||
@ -22,7 +22,7 @@ export default function ItemList({ items, type }: { items: ItemProps[], type: st
|
|||||||
// }, []);
|
// }, []);
|
||||||
|
|
||||||
const handleDelete = (id: string) => {
|
const handleDelete = (id: string) => {
|
||||||
deleteItems(id, type);
|
// deleteItems(id, type);
|
||||||
};
|
};
|
||||||
|
|
||||||
// if (!isMounted) return null;
|
// if (!isMounted) return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user