add missing getServerSideProps to /event-types (#15731)

This commit is contained in:
Somay Chauhan
2024-07-13 09:51:00 +00:00
committed by GitHub
parent 492304fe1d
commit 6d2ec71df3
+6 -1
View File
@@ -1,6 +1,9 @@
import { withAppDirSsr } from "app/WithAppDirSsr";
import { _generateMetadata } from "app/_utils";
import { WithLayout } from "app/layoutHOC";
import { getServerSideProps } from "@lib/event-types/getServerSideProps";
import EventTypes from "~/event-types/views/event-types-listing-view";
export const generateMetadata = async () =>
@@ -9,4 +12,6 @@ export const generateMetadata = async () =>
(t) => t("event_types_page_subtitle")
);
export default WithLayout({ getLayout: null, Page: EventTypes })<"P">;
const getData = withAppDirSsr(getServerSideProps);
export default WithLayout({ getLayout: null, getData, Page: EventTypes })<"P">;