added location element
All checks were successful
backend-action / build-image (push) Successful in 1m50s
All checks were successful
backend-action / build-image (push) Successful in 1m50s
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { db } from "@/src/db";
|
||||
import LocationSelector from "../../components/LocationSelector";
|
||||
import LocationContextProvider from "@/components/locationContenxt";
|
||||
|
||||
export default async function Page() {
|
||||
let provinces = await db.query.province
|
||||
.findMany({ with: { zones: true } })
|
||||
.execute();
|
||||
return (
|
||||
<LocationContextProvider>
|
||||
<LocationSelector provinces={provinces} />
|
||||
</LocationContextProvider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user