From e60c5000f4ac181e3d42b3622b70d320da73b072 Mon Sep 17 00:00:00 2001 From: ditiqi Date: Thu, 6 Mar 2025 22:27:04 +0800 Subject: [PATCH] add --- apps/web/src/components/test/StaffCard.tsx | 13 ------------- apps/web/src/components/test/StaffList.tsx | 6 ------ 2 files changed, 19 deletions(-) delete mode 100644 apps/web/src/components/test/StaffCard.tsx delete mode 100644 apps/web/src/components/test/StaffList.tsx diff --git a/apps/web/src/components/test/StaffCard.tsx b/apps/web/src/components/test/StaffCard.tsx deleted file mode 100644 index 3c67ea6..0000000 --- a/apps/web/src/components/test/StaffCard.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { Staff } from "packages/common/dist"; -import { api } from "packages/client/dist"; -export const StaffCard = (staff: Staff) => { - const { data } = api.staff.findManyWithPagination.useQuery({ - page - }); - return( -
-
${username}
-
- ) - -} \ No newline at end of file diff --git a/apps/web/src/components/test/StaffList.tsx b/apps/web/src/components/test/StaffList.tsx deleted file mode 100644 index b418bdc..0000000 --- a/apps/web/src/components/test/StaffList.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import { api } from "packages/client/dist"; -import { ReactNode } from "react"; -export default function StaffList({ renderItem }: { renderItem: ReactNode }) { - const { data } = api.staff.findManyWithPagination.useQuery({}); - data.items.map((staff) => renderItem); -}