From 75ac950eeba97a56a55eaeabef32244b17811fb9 Mon Sep 17 00:00:00 2001 From: William Moraes Date: Wed, 29 May 2024 19:56:03 -0300 Subject: [PATCH] refactor: :recycle: move data-table component to folder --- .../user/shelters/{ => _components/data-table}/columns.tsx | 0 .../shelters/{ => _components/data-table}/data-table.tsx | 0 src/app/user/shelters/_components/data-table/index.ts | 2 ++ src/app/user/shelters/page.tsx | 7 +++++-- 4 files changed, 7 insertions(+), 2 deletions(-) rename src/app/user/shelters/{ => _components/data-table}/columns.tsx (100%) rename src/app/user/shelters/{ => _components/data-table}/data-table.tsx (100%) create mode 100644 src/app/user/shelters/_components/data-table/index.ts diff --git a/src/app/user/shelters/columns.tsx b/src/app/user/shelters/_components/data-table/columns.tsx similarity index 100% rename from src/app/user/shelters/columns.tsx rename to src/app/user/shelters/_components/data-table/columns.tsx diff --git a/src/app/user/shelters/data-table.tsx b/src/app/user/shelters/_components/data-table/data-table.tsx similarity index 100% rename from src/app/user/shelters/data-table.tsx rename to src/app/user/shelters/_components/data-table/data-table.tsx diff --git a/src/app/user/shelters/_components/data-table/index.ts b/src/app/user/shelters/_components/data-table/index.ts new file mode 100644 index 0000000..2f4887f --- /dev/null +++ b/src/app/user/shelters/_components/data-table/index.ts @@ -0,0 +1,2 @@ +export * from "./data-table"; +export * from "./columns"; diff --git a/src/app/user/shelters/page.tsx b/src/app/user/shelters/page.tsx index 0de7a78..c4aa935 100644 --- a/src/app/user/shelters/page.tsx +++ b/src/app/user/shelters/page.tsx @@ -2,8 +2,11 @@ import { api } from "~/trpc/react"; -import { type ShelterTable, columns } from "./columns"; -import { DataTable } from "./data-table"; +import { + type ShelterTable, + columns, + DataTable, +} from "./_components/data-table"; import Link from "next/link"; import { Skeleton } from "~/components/ui/skeleton";