Remove maintenance banner

This commit is contained in:
MartinBraquet
2025-10-09 18:20:53 +02:00
parent 423d87d5f1
commit 3585b12dfd
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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 */}
<div className="lg:col-span-12 w-full bg-orange-500 text-white text-center text-sm py-2 px-3">
{IS_MAINTENANCE && <div className="lg:col-span-12 w-full bg-orange-500 text-white text-center text-sm py-2 px-3">
Maintenance in progress: Some features may be broken for the next few hours.
</div>
</div>}
{hideSidebar ? (
<div className="lg:col-span-2 lg:flex" />
) : (