feat: explore (#85)

This commit is contained in:
Cody Tseng
2025-02-11 16:33:31 +08:00
committed by GitHub
parent 80893ec033
commit b91f46723e
35 changed files with 811 additions and 179 deletions

View File

@@ -0,0 +1,19 @@
import { usePrimaryPage } from '@/PageManager'
import { Compass } from 'lucide-react'
import { useTranslation } from 'react-i18next'
import SidebarItem from './SidebarItem'
export default function RelaysButton() {
const { t } = useTranslation()
const { navigate, current } = usePrimaryPage()
return (
<SidebarItem
title={t('Explore')}
onClick={() => navigate('explore')}
active={current === 'explore'}
>
<Compass strokeWidth={3} />
</SidebarItem>
)
}

View File

@@ -4,6 +4,7 @@ import AccountButton from './AccountButton'
import HomeButton from './HomeButton'
import NotificationsButton from './NotificationButton'
import PostButton from './PostButton'
import RelaysButton from './ExploreButton'
import SearchButton from './SearchButton'
import SettingsButton from './SettingsButton'
@@ -16,6 +17,7 @@ export default function PrimaryPageSidebar() {
<Logo className="max-xl:hidden" />
</div>
<HomeButton />
<RelaysButton />
<NotificationsButton />
<SearchButton />
<SettingsButton />