fix: torrent size
This commit is contained in:
1 parent
8d7e2df869
commit
c6d306cb7b
22 files changed
+1638
-300
No files matched your search
@@ -7,17 +7,19 @@ import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
|
||||
export default function Navigation() {
|
||||
const path = usePathname();
|
||||
|
||||
return (
|
||||
<Tabs value={path} className='flex-grow mt-2'>
|
||||
<TabsList className='grid w-full grid-cols-3'>
|
||||
<TabsList className='flex w-full'>
|
||||
{[
|
||||
['/', 'Random'],
|
||||
['/top', 'Top'],
|
||||
['/favorites', 'Favorites']
|
||||
].map(([path, label]) => (
|
||||
{ path: '/', title: 'Random' },
|
||||
{ path: '/popular', title: 'Popular' },
|
||||
{ path: '/top', title: 'Top rated' },
|
||||
{ path: '/favorites', title: 'Favorites' }
|
||||
].map(({ path, title }) => (
|
||||
<Link href={path} className='w-full' key={path}>
|
||||
<TabsTrigger className='w-full' value={path}>
|
||||
{label}
|
||||
{title}
|
||||
</TabsTrigger>
|
||||
</Link>
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user