diff --git a/src/resources/js/app.ts b/src/resources/js/app.ts index 0d061979..24fa8156 100644 --- a/src/resources/js/app.ts +++ b/src/resources/js/app.ts @@ -4,6 +4,7 @@ import { createInertiaApp } from '@inertiajs/vue3'; import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers'; import { ZiggyVue } from 'ziggy-js'; +import ripple from '@/shared/directives/ripple'; import { HasRolePlugin } from '@/shared/plugins/user/authorize'; import '../css/app.css'; @@ -23,6 +24,7 @@ createInertiaApp({ .use(plugin) .use(ZiggyVue) .use(HasRolePlugin) + .directive('ripple', ripple) .mount(el); }, progress: { diff --git a/src/resources/js/features/theme-switcher/ThemeSwitcher.vue b/src/resources/js/features/theme-switcher/ThemeSwitcher.vue index 20332f9a..1cc8d704 100644 --- a/src/resources/js/features/theme-switcher/ThemeSwitcher.vue +++ b/src/resources/js/features/theme-switcher/ThemeSwitcher.vue @@ -10,7 +10,7 @@ const toggleDarkMode = useToggle(isDark);