mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Update: add update brewery post
This commit is contained in:
@@ -14,7 +14,7 @@ interface EditPageProps {
|
||||
beerPost: z.infer<typeof beerPostQueryResult>;
|
||||
}
|
||||
|
||||
const EditPage: NextPage<EditPageProps> = ({ beerPost }) => {
|
||||
const EditBeerPostPage: NextPage<EditPageProps> = ({ beerPost }) => {
|
||||
const pageTitle = `Edit \u201c${beerPost.name}\u201d`;
|
||||
|
||||
return (
|
||||
@@ -44,7 +44,7 @@ const EditPage: NextPage<EditPageProps> = ({ beerPost }) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default EditPage;
|
||||
export default EditBeerPostPage;
|
||||
|
||||
export const getServerSideProps = withPageAuthRequired<EditPageProps>(
|
||||
async (context, session) => {
|
||||
|
||||
Reference in New Issue
Block a user