mirror of
https://github.com/supabase/supabase.git
synced 2026-12-05 16:09:06 +00:00
I removed the "We've updated our Terms of Service" notice from the dashboard. It was added in #51302 and has been up since early October, and it had no expiry of its own. I also removed its landing-path helper, its tests and its dismissal key. ## To test Tested on the PR preview, in a browser profile that never dismissed the notice: - [x] Open an organization's landing page (`/org/<slug>`): expect no "We've updated our Terms of Service" card in the bottom right. Observed: no card on the organizations list or on an org's landing page, with the dismissal key unset on both. ## Linear - fixes GROWTH-1494
28 lines
920 B
TypeScript
28 lines
920 B
TypeScript
import { useFlag } from 'common'
|
|
import { PropsWithChildren } from 'react'
|
|
|
|
import { OrganizationResourceBanner } from '../Organization/HeaderBanner'
|
|
import { ClockSkewBanner } from '@/components/layouts/AppLayout/ClockSkewBanner'
|
|
import { NoticeBanner } from '@/components/layouts/AppLayout/NoticeBanner'
|
|
import { StatusBanner } from '@/components/layouts/AppLayout/StatusBanner'
|
|
|
|
export const AppBannerWrapper = ({
|
|
children,
|
|
signedOut = false,
|
|
}: PropsWithChildren<{ signedOut?: boolean }>) => {
|
|
const showNoticeBanner = useFlag('showNoticeBanner')
|
|
const clockSkewBanner = useFlag('clockSkewBanner')
|
|
|
|
return (
|
|
<div className="flex flex-col">
|
|
<div className="shrink-0">
|
|
<StatusBanner signedOut={signedOut} />
|
|
{showNoticeBanner && <NoticeBanner />}
|
|
<OrganizationResourceBanner />
|
|
{clockSkewBanner && <ClockSkewBanner />}
|
|
</div>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|