feat: 💨

This commit is contained in:
codytseng 2025-09-06 16:44:50 +08:00
parent fc138609a1
commit 647f9062f8
9 changed files with 64 additions and 92 deletions

View file

@ -1,5 +1,4 @@
import Relay from '@/components/Relay'
import RelayPageControls from '@/components/RelayPageControls'
import SecondaryPageLayout from '@/layouts/SecondaryPageLayout'
import { normalizeUrl, simplifyUrl } from '@/lib/url'
import { forwardRef, useMemo } from 'react'
@ -14,13 +13,7 @@ const RelayPage = forwardRef(({ url, index }: { url?: string; index?: number },
}
return (
<SecondaryPageLayout
ref={ref}
index={index}
title={title}
controls={<RelayPageControls url={normalizedUrl} />}
displayScrollToTopButton
>
<SecondaryPageLayout ref={ref} index={index} title={title} displayScrollToTopButton>
<Relay url={normalizedUrl} />
</SecondaryPageLayout>
)