added grouping creator
All checks were successful
backend-action / build-image (push) Successful in 1m5s

This commit is contained in:
2024-05-16 14:49:42 +07:00
parent 05f3e019a8
commit d125687536
5 changed files with 170 additions and 20 deletions

View File

@@ -1,14 +1,17 @@
import { db } from "@/src/db";
import LocationSelector from "../../components/LocationSelector";
import LocationContextProvider from "@/components/locationContenxt";
import GroupCreator from "./GroupCreator";
export default async function Page() {
let provinces = await db.query.province
.findMany({ with: { zones: true } })
.execute();
let jobList = await db.query.group.findMany().execute();
return (
<LocationContextProvider>
<LocationSelector provinces={provinces} />
<GroupCreator allJobs={jobList} />
</LocationContextProvider>
);
}