Skip to content

Commit

Permalink
Fix logout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts committed Mar 30, 2024
1 parent 5fd34ce commit 7331c04
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 84 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<a {{ $attributes->twMerge(['class' => 'group flex items-center px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-white transition duration-150 ease-in-out']) }} wire:navigate>
<x-shopper::link {{ $attributes->twMerge(['class' => 'group flex items-center px-4 py-2 text-sm leading-5 text-gray-700 hover:text-gray-900 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white transition duration-150 ease-in-out']) }}>
{{ $slot }}
</a>
</x-shopper::link>
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@ class="absolute z-50 top-10 right-2.5 w-56 origin-top-right rounded-lg bg-white
<div class="py-1.5 px-1">
<x-shopper::theme-switcher />
</div>
<div class="py-1.5" role="none">
<x-shopper::dropdown-link
:href="route('shopper.logout')"
onclick="event.preventDefault(); document.getElementById('logout-form').submit();"
>
{{ __('shopper::layout.account_dropdown.sign_out') }}
</x-shopper::dropdown-link>
<form id="logout-form" action="{{ route('shopper.logout') }}" method="POST" style="display: none;">
<div class="py-1.5 px-1" role="none">
<form id="logout-form" action="{{ route('shopper.logout') }}" method="POST">
@csrf
<button
type="submit"
class="group w-full flex items-center px-4 py-2 text-sm leading-5 rounded-lg text-gray-700 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-white/5"
>
<x-untitledui-log-out class="mr-2 h-5 w-5 text-gray-400 dark:group-hover:text-gray-500" />
{{ __('shopper::layout.account_dropdown.sign_out') }}
</button>
</form>
</div>
</div>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>
</div>

<form class="mt-6" wire:submit.prevent="authenticate">
<form class="mt-6" wire:submit="authenticate">
<div class="rounded-md shadow-sm">
<div>
<input
Expand Down
3 changes: 1 addition & 2 deletions packages/admin/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@
});

if (config('shopper.routes.custom_file')) {
Route::namespace(config('shopper.admin.controllers.namespace'))
->group(config('shopper.routes.custom_file'));
Route::as('shopper.')->group(config('shopper.routes.custom_file'));
}
});
});
Expand Down
38 changes: 0 additions & 38 deletions packages/admin/src/Livewire/Modals/DeleteCustomer.php

This file was deleted.

0 comments on commit 7331c04

Please sign in to comment.