diff --git a/src/components/documents/location/NewLocationForm.tsx b/src/components/documents/location/NewLocationForm.tsx index a9021df..d6c1f6d 100644 --- a/src/components/documents/location/NewLocationForm.tsx +++ b/src/components/documents/location/NewLocationForm.tsx @@ -1,6 +1,9 @@ import { useState } from "react"; import type { CampaignId, Location } from "@/lib/types"; import { pb } from "@/lib/pocketbase"; +import { BaseForm } from "@/components/form/BaseForm"; +import { MultiLineInput } from "@/components/form/MultiLineInput"; +import { SingleLineInput } from "@/components/form/SingleLineInput"; /** * Renders a form to add a new location. Calls onCreate with the new location document. @@ -42,42 +45,29 @@ export const NewLocationForm = ({ } return ( -
-

Create new location

-
- - setName(e.target.value)} - disabled={adding} - aria-label="Name" - /> -
-
- -