24 - Replace broken dashboard route imports with home
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m29s

This commit is contained in:
myrmidex 2026-03-30 01:09:35 +02:00
parent c3ce5b0b80
commit 91eba18b79
5 changed files with 12 additions and 12 deletions

View file

@ -29,7 +29,7 @@ import {
import { UserMenuContent } from '@/components/user-menu-content'; import { UserMenuContent } from '@/components/user-menu-content';
import { useInitials } from '@/hooks/use-initials'; import { useInitials } from '@/hooks/use-initials';
import { cn, isSameUrl, resolveUrl } from '@/lib/utils'; import { cn, isSameUrl, resolveUrl } from '@/lib/utils';
import { dashboard } from '@/routes'; import { home } from '@/routes';
import { type BreadcrumbItem, type NavItem, type SharedData } from '@/types'; import { type BreadcrumbItem, type NavItem, type SharedData } from '@/types';
import { Link, usePage } from '@inertiajs/react'; import { Link, usePage } from '@inertiajs/react';
import { BookOpen, Folder, LayoutGrid, Menu, Search } from 'lucide-react'; import { BookOpen, Folder, LayoutGrid, Menu, Search } from 'lucide-react';
@ -39,7 +39,7 @@ import AppLogoIcon from './AppLogoIcon';
const mainNavItems: NavItem[] = [ const mainNavItems: NavItem[] = [
{ {
title: 'Dashboard', title: 'Dashboard',
href: dashboard(), href: home(),
icon: LayoutGrid, icon: LayoutGrid,
}, },
]; ];
@ -140,7 +140,7 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
</div> </div>
<Link <Link
href={dashboard()} href={home()}
prefetch prefetch
className="flex items-center space-x-2" className="flex items-center space-x-2"
> >

View file

@ -10,7 +10,7 @@ import {
SidebarMenuButton, SidebarMenuButton,
SidebarMenuItem, SidebarMenuItem,
} from '@/components/ui/sidebar'; } from '@/components/ui/sidebar';
import { dashboard } from '@/routes'; import { home } from '@/routes';
import { type NavItem } from '@/types'; import { type NavItem } from '@/types';
import { Link } from '@inertiajs/react'; import { Link } from '@inertiajs/react';
import { BookOpen, Folder, LayoutGrid } from 'lucide-react'; import { BookOpen, Folder, LayoutGrid } from 'lucide-react';
@ -19,7 +19,7 @@ import AppLogo from './AppLogo';
const mainNavItems: NavItem[] = [ const mainNavItems: NavItem[] = [
{ {
title: 'Dashboard', title: 'Dashboard',
href: dashboard(), href: home(),
icon: LayoutGrid, icon: LayoutGrid,
}, },
]; ];
@ -44,7 +44,7 @@ export function AppSidebar() {
<SidebarMenu> <SidebarMenu>
<SidebarMenuItem> <SidebarMenuItem>
<SidebarMenuButton size="lg" asChild> <SidebarMenuButton size="lg" asChild>
<Link href={dashboard()} prefetch> <Link href={home()} prefetch>
<AppLogo /> <AppLogo />
</Link> </Link>
</SidebarMenuButton> </SidebarMenuButton>

View file

@ -1,5 +1,5 @@
import AppLogoIcon from '@/components/AppLogoIcon'; import AppLogoIcon from '@/components/AppLogoIcon';
import { dashboard } from '@/routes'; import { home } from '@/routes';
import { Link } from '@inertiajs/react'; import { Link } from '@inertiajs/react';
import { type PropsWithChildren } from 'react'; import { type PropsWithChildren } from 'react';
@ -20,7 +20,7 @@ export default function AuthSimpleLayout({
<div className="flex flex-col gap-8"> <div className="flex flex-col gap-8">
<div className="flex flex-col items-center gap-4"> <div className="flex flex-col items-center gap-4">
<Link <Link
href={dashboard.url()} href={home()}
className="flex flex-col items-center gap-2 font-medium" className="flex flex-col items-center gap-2 font-medium"
> >
<div className="mb-1 flex h-9 w-9 items-center justify-center rounded-md"> <div className="mb-1 flex h-9 w-9 items-center justify-center rounded-md">

View file

@ -1,13 +1,13 @@
import { PlaceholderPattern } from '@/components/ui/placeholder-pattern'; import { PlaceholderPattern } from '@/components/ui/placeholder-pattern';
import AppLayout from '@/layouts/AppLayout'; import AppLayout from '@/layouts/AppLayout';
import { dashboard } from '@/routes'; import { home } from '@/routes';
import { type BreadcrumbItem } from '@/types'; import { type BreadcrumbItem } from '@/types';
import { Head } from '@inertiajs/react'; import { Head } from '@inertiajs/react';
const breadcrumbs: BreadcrumbItem[] = [ const breadcrumbs: BreadcrumbItem[] = [
{ {
title: 'Dashboard', title: 'Dashboard',
href: dashboard().url, href: home().url,
}, },
]; ];

View file

@ -1,4 +1,4 @@
import { dashboard, login, register } from '@/routes'; import { home, login, register } from '@/routes';
import { type SharedData } from '@/types'; import { type SharedData } from '@/types';
import { Head, Link, usePage } from '@inertiajs/react'; import { Head, Link, usePage } from '@inertiajs/react';
@ -23,7 +23,7 @@ export default function Welcome({
<nav className="flex items-center justify-end gap-4"> <nav className="flex items-center justify-end gap-4">
{auth.user ? ( {auth.user ? (
<Link <Link
href={dashboard()} href={home()}
className="inline-block rounded-sm border border-[#19140035] px-5 py-1.5 text-sm leading-normal text-[#1b1b18] hover:border-[#1915014a] dark:border-[#3E3E3A] dark:text-[#EDEDEC] dark:hover:border-[#62605b]" className="inline-block rounded-sm border border-[#19140035] px-5 py-1.5 text-sm leading-normal text-[#1b1b18] hover:border-[#1915014a] dark:border-[#3E3E3A] dark:text-[#EDEDEC] dark:hover:border-[#62605b]"
> >
Dashboard Dashboard