Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/js/components/app-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const rightNavItems: NavItem[] = [
},
{
title: 'Documentation',
href: 'https://laravel.com/docs/starter-kits',
href: 'https://laravel.com/docs/starter-kits#react',
icon: BookOpen,
},
];
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const footerNavItems: NavItem[] = [
},
{
title: 'Documentation',
href: 'https://laravel.com/docs/starter-kits',
href: 'https://laravel.com/docs/starter-kits#react',
icon: BookOpen,
},
];
Expand Down
9 changes: 7 additions & 2 deletions resources/js/components/user-menu-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSep
import { UserInfo } from '@/components/user-info';
import { useMobileNavigation } from '@/hooks/use-mobile-navigation';
import { type User } from '@/types';
import { Link } from '@inertiajs/react';
import { Link, router } from '@inertiajs/react';
import { LogOut, Settings } from 'lucide-react';

interface UserMenuContentProps {
Expand All @@ -12,6 +12,11 @@ interface UserMenuContentProps {
export function UserMenuContent({ user }: UserMenuContentProps) {
const cleanup = useMobileNavigation();

const handleLogout = () => {
cleanup();
router.flushAll();
};

return (
<>
<DropdownMenuLabel className="p-0 font-normal">
Expand All @@ -30,7 +35,7 @@ export function UserMenuContent({ user }: UserMenuContentProps) {
</DropdownMenuGroup>
<DropdownMenuSeparator />
<DropdownMenuItem asChild>
<Link className="block w-full" method="post" href={route('logout')} as="button" onClick={cleanup}>
<Link className="block w-full" method="post" href={route('logout')} as="button" onClick={handleLogout}>
<LogOut className="mr-2" />
Log out
</Link>
Expand Down
4 changes: 4 additions & 0 deletions resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@

<title inertia>{{ config('app.name', 'Laravel') }}</title>

<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">

<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=instrument-sans:400,500,600" rel="stylesheet" />

Expand Down