Skip to content

Commit

Permalink
Merge pull request #6 from elishaukpong/main
Browse files Browse the repository at this point in the history
Fixed dark mode support and dashboard link bug
  • Loading branch information
stephenjude authored Oct 28, 2024
2 parents 01a8582 + 66ee4e5 commit dd0f1bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 8 additions & 2 deletions resources/views/livewire/two-factor-authentication.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{{__('Store these recovery codes in a secure password manager. They can be used to recover access to your account if your two factor authentication device is lost.')}}
</p>

<div class="mb-4 p-4 bg-gray-100 rounded-md">
<div class="mb-4 bg-gray-100 dark:bg-gray-800 dark:text-gray-200 p-4 rounded-md">
@foreach($this->getUser()->recoveryCodes() as $code)
<p class="text-sm font-medium mb-2">{{$code}}</p>
@endforeach
Expand All @@ -67,5 +67,11 @@

<x-filament-actions::modals />

{{-- Success is as dangerous as failure. --}}
@if(!filament('filament-two-factor-authentication')->hasEnforcedTwoFactorSetup() || filament()->auth()->user()?->hasEnabledTwoFactorAuthentication())
<div class="my-4 text-center">
<x-filament::link :href="filament()->getCurrentPanel()->getUrl(filament()->getTenant())" weight="semibold">
{{__('Dashboard')}}
</x-filament::link>
</div>
@endif
</div>
6 changes: 0 additions & 6 deletions resources/views/pages/setup.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
@php use Stephenjude\FilamentTwoFactorAuthentication\Livewire\TwoFactorAuthentication; @endphp
<x-filament-panels::page.simple>
@livewire(TwoFactorAuthentication::class, ['aside' => false, 'redirectTo' => filament()->getCurrentPanel()->getProfileUrl()])

@if(!filament('filament-two-factor-authentication')->hasEnforcedTwoFactorSetup() || filament()->auth()->user()?->hasEnabledTwoFactorAuthentication())
<x-filament::link :href="filament()->getCurrentPanel()->getUrl(filament()->getTenant())" weight="semibold">
{{__('Dashboard')}}
</x-filament::link>
@endif
</x-filament-panels::page.simple>

0 comments on commit dd0f1bf

Please sign in to comment.