-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into redirect-on-success-for-platform
- Loading branch information
Showing
58 changed files
with
909 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
undecided: | ||
- "@calcom/app-store-cli" | ||
- "@calcom/platform-constants" | ||
- "@calcom/platform-enums" | ||
- "@calcom/platform-types" | ||
- "@calcom/platform-utils" | ||
- "@calcom/prisma" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import type { PageProps } from "app/_types"; | ||
import { _generateMetadata, getTranslate } from "app/_utils"; | ||
import { WithLayout } from "app/layoutHOC"; | ||
import Link from "next/link"; | ||
import { z } from "zod"; | ||
|
||
import { Button, Icon } from "@calcom/ui"; | ||
|
||
import AuthContainer from "@components/ui/AuthContainer"; | ||
|
||
export const generateMetadata = async () => { | ||
return await _generateMetadata( | ||
(t) => t("error"), | ||
() => "" | ||
); | ||
}; | ||
|
||
const querySchema = z.object({ | ||
error: z.string().optional(), | ||
}); | ||
|
||
const ServerPage = async ({ searchParams }: PageProps) => { | ||
const t = await getTranslate(); | ||
const { error } = querySchema.parse({ error: searchParams?.error || undefined }); | ||
const errorMsg = error || t("error_during_login"); | ||
return ( | ||
<AuthContainer title="" description="" isAppDir={true}> | ||
<div> | ||
<div className="bg-error mx-auto flex h-12 w-12 items-center justify-center rounded-full"> | ||
<Icon name="x" className="h-6 w-6 text-red-600" /> | ||
</div> | ||
<div className="mt-3 text-center sm:mt-5"> | ||
<h3 className="text-emphasis text-lg font-medium leading-6" id="modal-title"> | ||
{errorMsg} | ||
</h3> | ||
</div> | ||
</div> | ||
<div className="mt-5 sm:mt-6"> | ||
<Link href="/auth/login"> | ||
<Button className="flex w-full justify-center">{t("go_back_login")}</Button> | ||
</Link> | ||
</div> | ||
</AuthContainer> | ||
); | ||
}; | ||
|
||
export default WithLayout({ ServerPage })<"P">; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.