Skip to content

Commit 0ae15f0

Browse files
authored
Merge pull request #15 from SanderSander/fix-incompatibility
Fix failing view compilation in Laravel > 12.29
2 parents c769ea3 + 7d84894 commit 0ae15f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/views/components/navigation.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class="h-6 w-6 fill-red-500 text-gray-50 dark:text-gray-950"
2828
)
2929
@endif
3030
<x-laravel-exceptions-renderer::error-share :exception="$exception" />
31-
<x-laravel-exceptions-renderer::theme-switcher />
31+
@if (view()->exists('laravel-exceptions-renderer::theme-switcher'))
32+
<x-dynamic-component name="laravel-exceptions-renderer::theme-switcher" />
33+
@endif
3234
</div>
3335
</div>
3436
</div>

0 commit comments

Comments
 (0)