diff --git a/stubs/vue/js/jsx/Components/Navbar/Navbar.jsx b/stubs/vue/js/jsx/Components/Navbar/Navbar.jsx index 2e1106d..52a648e 100644 --- a/stubs/vue/js/jsx/Components/Navbar/Navbar.jsx +++ b/stubs/vue/js/jsx/Components/Navbar/Navbar.jsx @@ -37,7 +37,7 @@ export default defineComponent({ iconOnly variant="secondary" type="button" - onClick={toggleDarkMode} + onClick={ () => { toggleDarkMode() } } class="md:hidden" srText="Toggle dark mode" > @@ -64,7 +64,7 @@ export default defineComponent({ iconOnly variant="secondary" type="button" - onClick={toggleDarkMode} + onClick={ () => { toggleDarkMode() } } class="hidden md:inline-flex" srText="Toggle dark mode" > @@ -119,7 +119,7 @@ export default defineComponent({ type="button" class="inline-flex items-center px-3 py-2 text-sm font-medium leading-4 text-gray-500 transition duration-150 ease-in-out bg-white border border-transparent rounded-md hover:text-gray-700 focus:outline-none focus:ring focus:ring-purple-500 focus:ring-offset-1 focus:ring-offset-white dark:focus:ring-offset-dark-eval-1 dark:bg-dark-eval-1 dark:text-gray-400 dark:hover:text-gray-200" > - {usePage().props.value.auth.user.name} + {usePage().props.auth.user.name} usePage().props.value.errors) + const errors = computed(() => usePage().props.errors) const hasErrors = computed(() => Object.keys(errors.value).length > 0) diff --git a/stubs/vue/js/jsx/Pages/Profile/Partials/UpdateProfileInformationForm.jsx b/stubs/vue/js/jsx/Pages/Profile/Partials/UpdateProfileInformationForm.jsx index 3f4ae82..2502c1c 100644 --- a/stubs/vue/js/jsx/Pages/Profile/Partials/UpdateProfileInformationForm.jsx +++ b/stubs/vue/js/jsx/Pages/Profile/Partials/UpdateProfileInformationForm.jsx @@ -12,7 +12,7 @@ export default defineComponent({ }, setup(props) { - const user = usePage().props.value.auth.user + const user = usePage().props.auth.user const form = useForm({ name: user.name, diff --git a/stubs/vue/js/jsx/Pages/Welcome.jsx b/stubs/vue/js/jsx/Pages/Welcome.jsx index c356040..2debbc4 100644 --- a/stubs/vue/js/jsx/Pages/Welcome.jsx +++ b/stubs/vue/js/jsx/Pages/Welcome.jsx @@ -17,7 +17,7 @@ export default defineComponent({
{props.canLogin && (