19 lines
548 B
TypeScript
19 lines
548 B
TypeScript
import type { Route } from "./+types/schedule.$date.edit";
|
|
import ScheduleEditForm from "~/components/features/schedule/ScheduleEditForm";
|
|
import { useParams } from "react-router";
|
|
|
|
export function meta({}: Route.MetaArgs) {
|
|
return [
|
|
{ title: "Dish Planner - Edit Schedule" },
|
|
{ name: "description", content: "Edit schedule for a specific date" },
|
|
];
|
|
}
|
|
|
|
const ScheduleEditPage = () => {
|
|
const params = useParams();
|
|
const date = params.date as string;
|
|
|
|
return <ScheduleEditForm date={date} />;
|
|
};
|
|
|
|
export default ScheduleEditPage;
|