diff --git a/src/app/_components/AllRegions.tsx b/src/app/_components/AllRegions.tsx index 9c3f008..4eb73b8 100644 --- a/src/app/_components/AllRegions.tsx +++ b/src/app/_components/AllRegions.tsx @@ -2,6 +2,7 @@ import { db } from "~/server/db"; export default async function AllRegions() { const allRegions = await db.query.regions.findMany(); + const allCountries = await db.query.countries.findMany(); return (

All Regions:

@@ -9,7 +10,14 @@ export default async function AllRegions() { <> diff --git a/src/app/_components/admin/CreateRegionForm.tsx b/src/app/_components/admin/CreateRegionForm.tsx index b7f6a89..4951d7b 100644 --- a/src/app/_components/admin/CreateRegionForm.tsx +++ b/src/app/_components/admin/CreateRegionForm.tsx @@ -11,7 +11,6 @@ import { SelectValue, } from "~/components/ui/select"; import { useFormState } from "react-dom"; -import { init } from "next/dist/compiled/webpack/webpack"; interface Country { id: string;