Skip to content

Commit

Permalink
fixs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed Kamel committed May 23, 2023
1 parent f1b794d commit 1dd9b3f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions stubs/vue/js/jsx/Components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default defineComponent({
iconOnly
variant="secondary"
type="button"
onClick={toggleDarkMode}
onClick={ () => { toggleDarkMode() } }
class="md:hidden"
srText="Toggle dark mode"
>
Expand All @@ -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"
>
Expand Down Expand Up @@ -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}

<svg
class="ml-2 -mr-0.5 h-4 w-4"
Expand Down
2 changes: 1 addition & 1 deletion stubs/vue/js/jsx/Components/Sidebar/SidebarLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineComponent({
class={[
'p-2 flex items-center gap-2 rounded-md transition-colors',
{
'text-gray-500 hover:text-gray-700 hover:bg-gray-100 dark:hover:text-gray-300 dark:hover:bg-dark-eval-2':
'text-gray-400 hover:text-gray-700 hover:bg-gray-100 dark:hover:text-gray-300 dark:hover:bg-dark-eval-2':
!props.active,
'text-white bg-purple-500 shadow-lg hover:bg-purple-600':
props.active,
Expand Down
2 changes: 1 addition & 1 deletion stubs/vue/js/jsx/Components/ValidationErrors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { usePage } from '@inertiajs/vue3'

export default defineComponent({
setup() {
const errors = computed(() => usePage().props.value.errors)
const errors = computed(() => usePage().props.errors)

const hasErrors = computed(() => Object.keys(errors.value).length > 0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion stubs/vue/js/jsx/Pages/Welcome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineComponent({
<div class="relative flex items-top justify-center min-h-screen bg-gray-100 dark:bg-dark-eval-0 dark:text-gray-200 sm:items-center sm:pt-0">
{props.canLogin && (
<div class="hidden fixed top-0 right-0 px-6 py-4 sm:block">
{usePage().props.value.auth.user ? (
{usePage().props.auth.user ? (
<Link
href="/dashboard"
class="text-sm text-gray-700 underline"
Expand Down
4 changes: 2 additions & 2 deletions stubs/vue/js/sfc/Components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ onUnmounted(() => {
iconOnly
variant="secondary"
type="button"
@click="toggleDarkMode"
@click="() => { toggleDarkMode() }"
v-slot="{ iconSizeClasses }"
class="md:hidden"
srText="Toggle dark mode"
Expand All @@ -72,7 +72,7 @@ onUnmounted(() => {
iconOnly
variant="secondary"
type="button"
@click="toggleDarkMode"
@click="() => { toggleDarkMode() }"
v-slot="{ iconSizeClasses }"
class="hidden md:inline-flex"
srText="Toggle dark mode"
Expand Down
2 changes: 1 addition & 1 deletion stubs/vue/js/sfc/Components/Sidebar/SidebarLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Tag = !props.external ? Link : 'a'
:class="[
'p-2 flex items-center gap-2 rounded-md transition-colors',
{
'text-gray-500 hover:text-gray-700 hover:bg-gray-100 dark:hover:text-gray-300 dark:hover:bg-dark-eval-2':
'text-gray-400 hover:text-gray-700 hover:bg-gray-100 dark:hover:text-gray-300 dark:hover:bg-dark-eval-2':
!active,
'text-white bg-purple-500 shadow-lg hover:bg-purple-600':
active,
Expand Down

0 comments on commit 1dd9b3f

Please sign in to comment.