Skip to content

Commit

Permalink
fix: types and build
Browse files Browse the repository at this point in the history
  • Loading branch information
zomars authored and hbjORbj committed Jan 17, 2024
1 parent c64e9f4 commit a699489
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { type PageProps } from "@pages/org/[orgSlug]/[user]/[type]";
import Page from "@pages/org/[orgSlug]/[user]/[type]/embed";
import { withAppDir } from "app/AppDirSSRHOC";
import { withAppDirSsr } from "app/WithAppDirSsr";
import withEmbedSsrAppDir from "app/WithEmbedSSR";
import { WithLayout } from "app/layoutHOC";

import { getServerSideProps } from "@lib/org/[orgSlug]/[user]/[type]/getServerSideProps";

const getData = withAppDir<PageProps>(getServerSideProps);

const getData = withAppDirSsr<PageProps>(getServerSideProps);
const getEmbedData = withEmbedSsrAppDir(getData);

export default WithLayout({ getLayout: null, getData: getEmbedData, isBookingPage: true, Page });
4 changes: 2 additions & 2 deletions apps/web/app/future/org/[orgSlug]/[user]/[type]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Page, { type PageProps } from "@pages/org/[orgSlug]/[user]/[type]";
import { withAppDir } from "app/AppDirSSRHOC";
import { withAppDirSsr } from "app/WithAppDirSsr";
import { WithLayout } from "app/layoutHOC";

import { getServerSideProps } from "@lib/org/[orgSlug]/[user]/[type]/getServerSideProps";

const getData = withAppDir<PageProps>(getServerSideProps);
const getData = withAppDirSsr<PageProps>(getServerSideProps);

export default WithLayout({ getLayout: null, getData, isBookingPage: true, Page });
5 changes: 3 additions & 2 deletions apps/web/app/future/org/[orgSlug]/[user]/embed/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { getServerSideProps, type PageProps } from "@pages/org/[orgSlug]/[user]";
import Page from "@pages/org/[orgSlug]/[user]/embed";
import { withAppDir } from "app/AppDirSSRHOC";
import { withAppDirSsr } from "app/WithAppDirSsr";
import withEmbedSsrAppDir from "app/WithEmbedSSR";
import { WithLayout } from "app/layoutHOC";

const getData = withAppDir<PageProps>(getServerSideProps);
const getData = withAppDirSsr<PageProps>(getServerSideProps);

const getEmbedData = withEmbedSsrAppDir(getData);

export default WithLayout({ getLayout: null, getData: getEmbedData, isBookingPage: true, Page });
4 changes: 2 additions & 2 deletions apps/web/app/future/org/[orgSlug]/[user]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Page, { getServerSideProps, type PageProps } from "@pages/org/[orgSlug]/[user]";
import { withAppDir } from "app/AppDirSSRHOC";
import { withAppDirSsr } from "app/WithAppDirSsr";
import { WithLayout } from "app/layoutHOC";

const getData = withAppDir<PageProps>(getServerSideProps);
const getData = withAppDirSsr<PageProps>(getServerSideProps);

export default WithLayout({ getLayout: null, getData, isBookingPage: true, Page });
2 changes: 1 addition & 1 deletion apps/web/pages/org/[orgSlug]/[user]/[type]/embed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import withEmbedSsr from "@lib/withEmbedSsr";

import { getServerSideProps as _getServerSideProps } from "../[type]";

export { default } from "../[type]";
export { default, type PageProps } from "../[type]";

export const getServerSideProps = withEmbedSsr(_getServerSideProps);

0 comments on commit a699489

Please sign in to comment.