Skip to content

Commit 8e54da0

Browse files
fix: add 'wire:navigate' attributes (#12)
1 parent a9d7134 commit 8e54da0

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

resources/views/components/layouts/app/header.blade.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<flux:header container class="border-b border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900">
88
<flux:sidebar.toggle class="lg:hidden" icon="bars-2" inset="left" />
99

10-
<a href="{{ route('dashboard') }}" class="ml-2 mr-5 flex items-center space-x-2 lg:ml-0">
10+
<a href="{{ route('dashboard') }}" class="ml-2 mr-5 flex items-center space-x-2 lg:ml-0" wire:navigate>
1111
<x-app-logo class="size-8" href="#"></x-app-logo>
1212
</a>
1313

1414
<flux:navbar class="-mb-px max-lg:hidden">
15-
<flux:navbar.item icon="layout-grid" href="{{ route('dashboard') }}" :current="request()->routeIs('dashboard')">
15+
<flux:navbar.item icon="layout-grid" href="{{ route('dashboard') }}" :current="request()->routeIs('dashboard')" wire:navigate>
1616
Dashboard
1717
</flux:navbar.item>
1818
</flux:navbar>
@@ -73,7 +73,7 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
7373
<flux:menu.separator />
7474

7575
<flux:menu.radio.group>
76-
<flux:menu.item href="/settings/profile" icon="cog">Settings</flux:menu.item>
76+
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>Settings</flux:menu.item>
7777
</flux:menu.radio.group>
7878

7979
<flux:menu.separator />
@@ -92,13 +92,13 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
9292
<flux:sidebar stashable sticky class="lg:hidden border-r border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900">
9393
<flux:sidebar.toggle class="lg:hidden" icon="x-mark" />
9494

95-
<a href="{{ route('dashboard') }}" class="ml-1 flex items-center space-x-2">
95+
<a href="{{ route('dashboard') }}" class="ml-1 flex items-center space-x-2" wire:navigate>
9696
<x-app-logo class="size-8" href="#"></x-app-logo>
9797
</a>
9898

9999
<flux:navlist variant="outline">
100100
<flux:navlist.group heading="Platform">
101-
<flux:navlist.item icon="layout-grid" href="{{ route('dashboard') }}" :current="request()->routeIs('dashboard')">
101+
<flux:navlist.item icon="layout-grid" href="{{ route('dashboard') }}" :current="request()->routeIs('dashboard')" wire:navigate>
102102
Dashboard
103103
</flux:navlist.item>
104104
</flux:navlist.group>

resources/views/components/layouts/app/sidebar.blade.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<flux:sidebar sticky stashable class="border-r border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900">
88
<flux:sidebar.toggle class="lg:hidden" icon="x-mark" />
99

10-
<a href="{{ route('dashboard') }}" class="mr-5 flex items-center space-x-2">
10+
<a href="{{ route('dashboard') }}" class="mr-5 flex items-center space-x-2" wire:navigate>
1111
<x-app-logo class="size-8" href="#"></x-app-logo>
1212
</a>
1313

1414
<flux:navlist variant="outline">
1515
<flux:navlist.group heading="Platform" class="grid">
16-
<flux:navlist.item icon="home" :href="route('dashboard')" :current="request()->routeIs('dashboard')">Dashboard</flux:navlist.item>
16+
<flux:navlist.item icon="home" :href="route('dashboard')" :current="request()->routeIs('dashboard')" wire:navigate>Dashboard</flux:navlist.item>
1717
</flux:navlist.group>
1818
</flux:navlist>
1919

@@ -60,7 +60,7 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
6060
<flux:menu.separator />
6161

6262
<flux:menu.radio.group>
63-
<flux:menu.item href="/settings/profile" icon="cog">Settings</flux:menu.item>
63+
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>Settings</flux:menu.item>
6464
</flux:menu.radio.group>
6565

6666
<flux:menu.separator />
@@ -110,7 +110,7 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
110110
<flux:menu.separator />
111111

112112
<flux:menu.radio.group>
113-
<flux:menu.item href="/settings/profile" icon="cog">Settings</flux:menu.item>
113+
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>Settings</flux:menu.item>
114114
</flux:menu.radio.group>
115115

116116
<flux:menu.separator />

resources/views/components/layouts/auth/card.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<body class="min-h-screen bg-neutral-100 antialiased dark:bg-linear-to-b dark:from-neutral-950 dark:to-neutral-900">
77
<div class="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
88
<div class="flex w-full max-w-md flex-col gap-6">
9-
<a href="{{ route('home') }}" class="flex flex-col items-center gap-2 font-medium">
9+
<a href="{{ route('home') }}" class="flex flex-col items-center gap-2 font-medium" wire:navigate>
1010
<span class="flex h-9 w-9 items-center justify-center rounded-md">
1111
<x-app-logo-icon class="size-9 fill-current text-black dark:text-white" />
1212
</span>

resources/views/components/layouts/auth/simple.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<body class="min-h-screen bg-white antialiased dark:bg-linear-to-b dark:from-neutral-950 dark:to-neutral-900">
77
<div class="bg-background flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
88
<div class="flex w-full max-w-sm flex-col gap-2">
9-
<a href="{{ route('home') }}" class="flex flex-col items-center gap-2 font-medium">
9+
<a href="{{ route('home') }}" class="flex flex-col items-center gap-2 font-medium" wire:navigate>
1010
<span class="flex h-9 w-9 mb-1 items-center justify-center rounded-md">
1111
<x-app-logo-icon class="size-9 fill-current text-black dark:text-white" />
1212
</span>

resources/views/components/layouts/auth/split.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="relative grid h-dvh flex-col items-center justify-center px-8 sm:px-0 lg:max-w-none lg:grid-cols-2 lg:px-0">
88
<div class="bg-muted relative hidden h-full flex-col p-10 text-white lg:flex dark:border-r dark:border-neutral-800">
99
<div class="absolute inset-0 bg-neutral-900"></div>
10-
<a href="{{ route('home') }}" class="relative z-20 flex items-center text-lg font-medium">
10+
<a href="{{ route('home') }}" class="relative z-20 flex items-center text-lg font-medium" wire:navigate>
1111
<span class="flex h-10 w-10 items-center justify-center rounded-md">
1212
<x-app-logo-icon class="mr-2 h-7 fill-current text-white" />
1313
</span>
@@ -27,7 +27,7 @@
2727
</div>
2828
<div class="w-full lg:p-8">
2929
<div class="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
30-
<a href="{{ route('home') }}" class="z-20 flex flex-col items-center gap-2 font-medium lg:hidden">
30+
<a href="{{ route('home') }}" class="z-20 flex flex-col items-center gap-2 font-medium lg:hidden" wire:navigate>
3131
<span class="flex h-9 w-9 items-center justify-center rounded-md">
3232
<x-app-logo-icon class="size-9 fill-current text-black dark:text-white" />
3333
</span>

0 commit comments

Comments
 (0)