Skip to content

Commit

Permalink
fix: Remove PageWrapper (#14579)
Browse files Browse the repository at this point in the history
* fix: Remove PageWrapper

* Remove useLocale
  • Loading branch information
emrysal committed Apr 14, 2024
1 parent de47408 commit 3d23978
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions apps/web/pages/maintenance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,23 @@
import Head from "next/head";

import { APP_NAME, WEBSITE_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Button } from "@calcom/ui";

import PageWrapper from "@components/PageWrapper";

export default function MaintenancePage() {
const { t, isLocaleReady } = useLocale();
if (!isLocaleReady) return null;
return (
<div className="bg-subtle flex h-screen">
<Head>
<title>
{t("under_maintenance")} | {APP_NAME}
</title>
<title>Under Maintenance | {APP_NAME}</title>
<link rel="icon" href="/favicon.ico" />
</Head>
<div className="bg-default m-auto rounded-md p-10 text-right ltr:text-left">
<h1 className="text-emphasis text-2xl font-medium">{t("under_maintenance")}</h1>
<h1 className="text-emphasis text-2xl font-medium">Down for maintenance</h1>
<p className="text-default mb-6 mt-4 max-w-2xl text-sm">
{t("under_maintenance_description", { appName: APP_NAME })}
The Cal.com team are performing scheduled maintenance. If you have any questions, please contact
support.
</p>
<Button href={`${WEBSITE_URL}/support`}>{t("contact_support")}</Button>
<Button href={`${WEBSITE_URL}/support`}>Contact Support</Button>
</div>
</div>
);
}

MaintenancePage.PageWrapper = PageWrapper;

0 comments on commit 3d23978

Please sign in to comment.