Update: add update brewery post

This commit is contained in:
Aaron William Po
2023-07-04 23:27:01 -04:00
parent 232435e3d5
commit ee47f99f8a
4 changed files with 161 additions and 2 deletions

View File

@@ -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) => {