chore: migrate /auth/logout (#18901)

* migrate /auth/verify-email page

* update middleware

* migrate /auth/logout page
This commit is contained in:
Benny Joo authored and GitHub committed 2025-01-27 14:22:33 +05:30
1 parent 2f9beed450
commit ed3579c5c7
5 files changed
+13 -51

No files matched your search

+5 -6
View File
@@ -2,6 +2,7 @@
import { signOut, useSession } from "next-auth/react";
import { useRouter } from "next/navigation";
import type { ParsedUrlQuery } from "querystring";
import { useEffect, useState } from "react";
import { WEBSITE_URL } from "@calcom/lib/constants";
@@ -9,13 +10,11 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Button } from "@calcom/ui";
import { Icon } from "@calcom/ui";
import type { inferSSRProps } from "@lib/types/inferSSRProps";
import AuthContainer from "@components/ui/AuthContainer";
import type { getServerSideProps } from "@server/lib/auth/logout/getServerSideProps";
export type PageProps = inferSSRProps<typeof getServerSideProps>;
export type PageProps = {
query: ParsedUrlQuery;
};
export function Logout(props: PageProps) {
const [btnLoading, setBtnLoading] = useState<boolean>(false);
@@ -42,7 +41,7 @@ export function Logout(props: PageProps) {
};
return (
<AuthContainer title={t("logged_out")} description={t("youve_been_logged_out")} showLogo>
<AuthContainer title={t("logged_out")} description={t("youve_been_logged_out")} showLogo isAppDir>
<div className="mb-4">
<div className="bg-success mx-auto flex h-12 w-12 items-center justify-center rounded-full">
<Icon name="check" className="h-6 w-6 text-green-600" />