Skip to content

Commit

Permalink
fix: convention
Browse files Browse the repository at this point in the history
  • Loading branch information
r4zendev committed Jan 11, 2024
1 parent fb7d52d commit 176bf59
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
9 changes: 9 additions & 0 deletions apps/web/app/future/auth/sso/[provider]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Provider from "@pages/auth/sso/[provider]";
import { withAppDir } from "app/AppDirSSRHOC";
import { WithLayout } from "app/layoutHOC";

export default WithLayout({
getLayout: null,
Page: Provider,
getData: withAppDir(getServerSideProps),
})<"P">;
11 changes: 11 additions & 0 deletions apps/web/app/future/auth/sso/direct/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import DirectSSOLogin from "@pages/auth/sso/direct";
import { WithLayout } from "app/layoutHOC";

import { getFuturePageProps } from "@server/lib/getFuturePageProps";
import { getSSODirectData } from "@server/lib/ssoDirectGetData";

export default WithLayout({
getLayout: null,
Page: DirectSSOLogin,
getData: (ctx) => getFuturePageProps(ctx, getSSODirectData),
})<"P">;
2 changes: 1 addition & 1 deletion apps/web/app/future/auth/verify/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import VerifyPage from "@pages/auth/verify";
import { withAppDir } from "app/AppDirSSRHOC";
import { WithLayout } from "app/layoutHOC";

import { getServerSideProps } from "@server/lib/verify/getServerSideProps";
import { getServerSideProps } from "@server/lib/auth/verify/getServerSideProps";

export default WithLayout({
getLayout: null,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/pages/auth/verify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { AlertTriangle, ExternalLink, MailOpen } from "@calcom/ui/components/ico
import Loader from "@components/Loader";
import PageWrapper from "@components/PageWrapper";

import { getServerSideProps } from "@server/lib/verify/getServerSideProps";
import { getServerSideProps } from "@server/lib/auth/verify/getServerSideProps";

async function sendVerificationLogin(email: string, username: string) {
await signIn("email", {
Expand Down

0 comments on commit 176bf59

Please sign in to comment.