chore: migrate /auth/error (#18730)
* migrate auth/error * fix * fix type check
This commit is contained in:
1 parent
78a6963cd9
commit
de05e8e989
11 files changed
+51
-53
No files matched your search
@@ -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 });
|
||||
|
||||
Reference in new issue
Block a user