diff --git a/stubs/inertia-react/resources/js/Layouts/AuthenticatedLayout.jsx b/stubs/inertia-react/resources/js/Layouts/AuthenticatedLayout.jsx index a0dbc5d8c..f818d7646 100644 --- a/stubs/inertia-react/resources/js/Layouts/AuthenticatedLayout.jsx +++ b/stubs/inertia-react/resources/js/Layouts/AuthenticatedLayout.jsx @@ -5,7 +5,7 @@ import NavLink from '@/Components/NavLink'; import ResponsiveNavLink from '@/Components/ResponsiveNavLink'; import { Link } from '@inertiajs/react'; -export default function Authenticated({ auth, header, children }) { +export default function Authenticated({ user, header, children }) { const [showingNavigationDropdown, setShowingNavigationDropdown] = useState(false); return ( @@ -36,7 +36,7 @@ export default function Authenticated({ auth, header, children }) { type="button" className="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 dark:text-gray-400 bg-white dark:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-300 focus:outline-none transition ease-in-out duration-150" > - {auth.user.name} + {user.name}
-
- {auth.user.name} -
-
{auth.user.email}
+
{user.name}
+
{user.email}
diff --git a/stubs/inertia-react/resources/js/Pages/Dashboard.jsx b/stubs/inertia-react/resources/js/Pages/Dashboard.jsx index 978a8c9bf..b4d8f90e2 100644 --- a/stubs/inertia-react/resources/js/Pages/Dashboard.jsx +++ b/stubs/inertia-react/resources/js/Pages/Dashboard.jsx @@ -1,11 +1,10 @@ import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout'; import { Head } from '@inertiajs/react'; -export default function Dashboard(props) { +export default function Dashboard({ auth }) { return ( Dashboard} > diff --git a/stubs/inertia-react/resources/js/Pages/Profile/Edit.jsx b/stubs/inertia-react/resources/js/Pages/Profile/Edit.jsx index 2a8679c3c..fbff1ace9 100644 --- a/stubs/inertia-react/resources/js/Pages/Profile/Edit.jsx +++ b/stubs/inertia-react/resources/js/Pages/Profile/Edit.jsx @@ -7,7 +7,7 @@ import { Head } from '@inertiajs/react'; export default function Edit({ auth, mustVerifyEmail, status }) { return ( Profile} > diff --git a/stubs/inertia-react/resources/js/Pages/Welcome.jsx b/stubs/inertia-react/resources/js/Pages/Welcome.jsx index 6b9ac0b16..28b7d1836 100644 --- a/stubs/inertia-react/resources/js/Pages/Welcome.jsx +++ b/stubs/inertia-react/resources/js/Pages/Welcome.jsx @@ -1,12 +1,12 @@ import { Link, Head } from '@inertiajs/react'; -export default function Welcome(props) { +export default function Welcome({ auth, laravelVersion, phpVersion }) { return ( <>
- {props.auth.user ? ( + {auth.user ? (
- Laravel v{props.laravelVersion} (PHP v{props.phpVersion}) + Laravel v{laravelVersion} (PHP v{phpVersion})
diff --git a/stubs/inertia-vue/resources/js/Components/Checkbox.vue b/stubs/inertia-vue/resources/js/Components/Checkbox.vue index 20698bff2..81039cf3f 100644 --- a/stubs/inertia-vue/resources/js/Components/Checkbox.vue +++ b/stubs/inertia-vue/resources/js/Components/Checkbox.vue @@ -6,7 +6,7 @@ const emit = defineEmits(['update:checked']); const props = defineProps({ checked: { type: [Array, Boolean], - default: false, + required: true, }, value: { default: null, diff --git a/stubs/inertia-vue/resources/js/Components/DangerButton.vue b/stubs/inertia-vue/resources/js/Components/DangerButton.vue index be501035f..55a5c8815 100644 --- a/stubs/inertia-vue/resources/js/Components/DangerButton.vue +++ b/stubs/inertia-vue/resources/js/Components/DangerButton.vue @@ -1,15 +1,5 @@ - -