24 - Replace broken dashboard route imports with home
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m29s
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m29s
This commit is contained in:
parent
c3ce5b0b80
commit
91eba18b79
5 changed files with 12 additions and 12 deletions
|
|
@ -29,7 +29,7 @@ import {
|
|||
import { UserMenuContent } from '@/components/user-menu-content';
|
||||
import { useInitials } from '@/hooks/use-initials';
|
||||
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 { Link, usePage } from '@inertiajs/react';
|
||||
import { BookOpen, Folder, LayoutGrid, Menu, Search } from 'lucide-react';
|
||||
|
|
@ -39,7 +39,7 @@ import AppLogoIcon from './AppLogoIcon';
|
|||
const mainNavItems: NavItem[] = [
|
||||
{
|
||||
title: 'Dashboard',
|
||||
href: dashboard(),
|
||||
href: home(),
|
||||
icon: LayoutGrid,
|
||||
},
|
||||
];
|
||||
|
|
@ -140,7 +140,7 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
|
|||
</div>
|
||||
|
||||
<Link
|
||||
href={dashboard()}
|
||||
href={home()}
|
||||
prefetch
|
||||
className="flex items-center space-x-2"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {
|
|||
SidebarMenuButton,
|
||||
SidebarMenuItem,
|
||||
} from '@/components/ui/sidebar';
|
||||
import { dashboard } from '@/routes';
|
||||
import { home } from '@/routes';
|
||||
import { type NavItem } from '@/types';
|
||||
import { Link } from '@inertiajs/react';
|
||||
import { BookOpen, Folder, LayoutGrid } from 'lucide-react';
|
||||
|
|
@ -19,7 +19,7 @@ import AppLogo from './AppLogo';
|
|||
const mainNavItems: NavItem[] = [
|
||||
{
|
||||
title: 'Dashboard',
|
||||
href: dashboard(),
|
||||
href: home(),
|
||||
icon: LayoutGrid,
|
||||
},
|
||||
];
|
||||
|
|
@ -44,7 +44,7 @@ export function AppSidebar() {
|
|||
<SidebarMenu>
|
||||
<SidebarMenuItem>
|
||||
<SidebarMenuButton size="lg" asChild>
|
||||
<Link href={dashboard()} prefetch>
|
||||
<Link href={home()} prefetch>
|
||||
<AppLogo />
|
||||
</Link>
|
||||
</SidebarMenuButton>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import AppLogoIcon from '@/components/AppLogoIcon';
|
||||
import { dashboard } from '@/routes';
|
||||
import { home } from '@/routes';
|
||||
import { Link } from '@inertiajs/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 items-center gap-4">
|
||||
<Link
|
||||
href={dashboard.url()}
|
||||
href={home()}
|
||||
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">
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import { PlaceholderPattern } from '@/components/ui/placeholder-pattern';
|
||||
import AppLayout from '@/layouts/AppLayout';
|
||||
import { dashboard } from '@/routes';
|
||||
import { home } from '@/routes';
|
||||
import { type BreadcrumbItem } from '@/types';
|
||||
import { Head } from '@inertiajs/react';
|
||||
|
||||
const breadcrumbs: BreadcrumbItem[] = [
|
||||
{
|
||||
title: 'Dashboard',
|
||||
href: dashboard().url,
|
||||
href: home().url,
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { dashboard, login, register } from '@/routes';
|
||||
import { home, login, register } from '@/routes';
|
||||
import { type SharedData } from '@/types';
|
||||
import { Head, Link, usePage } from '@inertiajs/react';
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ export default function Welcome({
|
|||
<nav className="flex items-center justify-end gap-4">
|
||||
{auth.user ? (
|
||||
<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]"
|
||||
>
|
||||
Dashboard
|
||||
|
|
|
|||
Loading…
Reference in a new issue