mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-11-18 07:22:06 +00:00
Zone creation UI preparation
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
"use client";
|
||||
|
||||
import { FeatureCollection } from "geojson";
|
||||
import { useTranslations } from "next-intl";
|
||||
|
||||
import { ZoneForm } from "../components/ZoneForm";
|
||||
|
||||
type ZoneFormValues = {
|
||||
features: FeatureCollection;
|
||||
};
|
||||
|
||||
const CreateZone = () => {
|
||||
const t = useTranslations("Zones");
|
||||
|
||||
const onSubmit = async (data: ZoneFormValues) => {
|
||||
try {
|
||||
console.log(data);
|
||||
} catch (err: unknown) {
|
||||
console.log(err);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="mx-auto max-w-screen-md px-4 py-8 lg:py-16">
|
||||
<ZoneForm />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default CreateZone;
|
||||
Reference in New Issue
Block a user