diff --git a/src/components/factory/page.tsx b/src/components/factory/page.tsx index b55b850..88af782 100644 --- a/src/components/factory/page.tsx +++ b/src/components/factory/page.tsx @@ -53,7 +53,15 @@ const createPages = ( ); }; const CreatePage: React.FC<{}> = () => { - return {components}; + return ( + + {title} + + Create a new {title} entry by filling out the form below. + + {components}; + + ); }; const UpdatePage: React.FC<{}> = () => { const data = useLoaderData() as T | null; @@ -61,7 +69,15 @@ const createPages = ( () => createInputArray(schema, [], data), [JSON.stringify(data)] ); - return {updateComponents}; + return ( + + {title} + + Update the current {title} entry by filling out the form below. + + {updateComponents}; + + ); }; return [DetailPage, CreatePage, UpdatePage]; };