refactor: Tabs component

This commit is contained in:
codytseng
2025-07-02 22:52:04 +08:00
parent 2489e8098d
commit 00bb3c712b
5 changed files with 82 additions and 72 deletions

View File

@@ -1,6 +1,6 @@
import FollowingFavoriteRelayList from '@/components/FollowingFavoriteRelayList'
import RelayList from '@/components/RelayList'
import TabSwitcher from '@/components/TabSwitch'
import Tabs from '@/components/Tabs'
import PrimaryPageLayout from '@/layouts/PrimaryPageLayout'
import { Compass } from 'lucide-react'
import { forwardRef, useState } from 'react'
@@ -18,7 +18,7 @@ const ExplorePage = forwardRef((_, ref) => {
titlebar={<ExplorePageTitlebar />}
displayScrollToTopButton
>
<TabSwitcher
<Tabs
value={tab}
tabs={[
{ value: 'following', label: "Following's Favorites" },