chore: migrate /auth/error (#18730)

* migrate auth/error

* fix

* fix type check
This commit is contained in:
Benny Joo authored and GitHub committed 2025-01-17 06:46:47 -05:00
1 parent 78a6963cd9
commit de05e8e989
11 files changed
+51 -53

No files matched your search

+1 -3
View File
@@ -9,13 +9,11 @@ import { Button, Icon } from "@calcom/ui";
import AuthContainer from "@components/ui/AuthContainer";
import type { PageProps } from "@server/lib/auth/error/getStaticProps";
const querySchema = z.object({
error: z.string().optional(),
});
export default function Error(props: PageProps) {
export default function Error() {
const { t } = useLocale();
const searchParams = useSearchParams();
const { error } = querySchema.parse({ error: searchParams?.get("error") || undefined });