Skip to content

Commit 4b7d33b

Browse files
committed
feat: invert rename banner show logic
1 parent aa027b2 commit 4b7d33b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/postgres-new/components/layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ export type LayoutProps = PropsWithChildren
1818
export default function Layout({ children }: LayoutProps) {
1919
const { isPreview } = useApp()
2020
const isSmallBreakpoint = useBreakpoint('lg')
21-
const isNewDomain = typeof window !== 'undefined' && window.location.hostname === 'database.build'
21+
const isLegacyDomain =
22+
typeof window !== 'undefined' && window.location.hostname === 'postgres.new'
2223

2324
return (
2425
<LazyMotion features={loadFramerFeatures}>
2526
<TooltipProvider delayDuration={0}>
2627
<div className="w-full h-full flex flex-col overflow-hidden">
2728
{isPreview && <PreviewBanner />}
28-
{!isNewDomain && <RenameBanner />}
29+
{isLegacyDomain && <RenameBanner />}
2930
<main className="flex-1 flex flex-col lg:flex-row min-h-0">
3031
{/* TODO: make sidebar available on mobile */}
3132
{!isSmallBreakpoint && <Sidebar />}

0 commit comments

Comments
 (0)