diff --git a/common/src/constants.ts b/common/src/constants.ts index 0eddaf82..be861c08 100644 --- a/common/src/constants.ts +++ b/common/src/constants.ts @@ -14,3 +14,5 @@ export const stoatLink = "https://stt.gg/YKQp81yA" export const formLink = "https://forms.gle/tKnXUMAbEreMK6FC6" export const pStyle = "mt-1 text-gray-800 dark:text-white whitespace-pre-line"; + +export const IS_MAINTENANCE = false; // set to true to enable maintenance mode banner diff --git a/web/components/love-page.tsx b/web/components/love-page.tsx index 7f691c6a..ffddb5c0 100644 --- a/web/components/love-page.tsx +++ b/web/components/love-page.tsx @@ -21,6 +21,7 @@ import Sidebar from './nav/love-sidebar' import {useProfile} from 'web/hooks/use-profile' import {Profile} from 'common/love/profile' import {NotificationsIcon, SolidNotificationsIcon} from './notifications-icon' +import {IS_MAINTENANCE} from "common/constants"; export function LovePage(props: { trackPageView: string | false @@ -70,9 +71,9 @@ export function LovePage(props: { containerClassName="!bottom-[70px]" /> {/* Maintenance banner */} -
+ {IS_MAINTENANCE &&
Maintenance in progress: Some features may be broken for the next few hours. -
+
} {hideSidebar ? (
) : (