Removed the Welcome page header nav links

This commit is contained in:
2026-05-18 22:02:12 +03:30
parent 59e4ae60da
commit b0417000e4

View File

@@ -2,7 +2,6 @@ import { Head, Link, usePage } from '@inertiajs/react';
import { import {
ArrowRight, ArrowRight,
Compass, Compass,
LifeBuoy,
LayoutDashboard, LayoutDashboard,
Radio, Radio,
Search, Search,
@@ -18,7 +17,6 @@ import { useTranslation } from '@/lib/translations';
import { cn } from '@/lib/utils'; import { cn } from '@/lib/utils';
import { dashboard, home, login, register } from '@/routes'; import { dashboard, home, login, register } from '@/routes';
import { show as showChannel } from '@/routes/channels'; import { show as showChannel } from '@/routes/channels';
import { index as supportIndex } from '@/routes/support';
import type { ChannelCard, ChannelCategory } from '@/types'; import type { ChannelCard, ChannelCategory } from '@/types';
type Props = { type Props = {
@@ -72,48 +70,15 @@ export default function Welcome({
<span>Nyone</span> <span>Nyone</span>
</Link> </Link>
<nav className="hidden items-center gap-1 text-sm text-muted-foreground md:flex">
<Link
href={home()}
className="rounded-md px-3 py-2 text-foreground"
>
{t('Live')}
</Link>
{auth.user && (
<>
<Link
href={dashboard()}
className="rounded-md px-3 py-2 hover:bg-accent hover:text-accent-foreground"
>
{t('Studio')}
</Link>
<Link
href={supportIndex()}
className="rounded-md px-3 py-2 hover:bg-accent hover:text-accent-foreground"
>
{t('Contact admin')}
</Link>
</>
)}
</nav>
<div className="ms-auto flex items-center gap-2"> <div className="ms-auto flex items-center gap-2">
<LanguageSwitcher /> <LanguageSwitcher />
{auth.user ? ( {auth.user ? (
<> <Button asChild size="sm">
<Button asChild size="sm"> <Link href={dashboard()}>
<Link href={dashboard()}> <LayoutDashboard className="size-4" />
<LayoutDashboard className="size-4" /> {t('Studio')}
{t('Studio')} </Link>
</Link> </Button>
</Button>
<Button asChild variant="outline" size="sm">
<Link href={supportIndex()}>
<LifeBuoy className="size-4" />
{t('Contact admin')}
</Link>
</Button>
</>
) : ( ) : (
<> <>
<Button asChild variant="ghost" size="sm"> <Button asChild variant="ghost" size="sm">