feat: add architecture, api routes and components
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import AdminLocationForm from "@/components/AdminLocationForm";
|
||||
|
||||
export default async function EditLocationPage({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ id: string }>;
|
||||
}) {
|
||||
const { id } = await params;
|
||||
|
||||
return (
|
||||
<div className="card shadow-sm border border-secondary mt-4 bg-dark text-white">
|
||||
<div className="card-header bg-dark border-secondary py-3">
|
||||
<h5 className="mb-0">Edit Location</h5>
|
||||
</div>
|
||||
<div className="card-body">
|
||||
<AdminLocationForm locationId={id} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user