Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
arduinomaster22 committed Dec 19, 2024
1 parent 0406860 commit 2239c53
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/TwoFactorAuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,12 @@ public function packageBooted(): void
);

$colors = filament()->getCurrentPanel()->getColors();
if (isset($colors['primary'])) {
if (is_string($colors['primary'])) {
$color = Color::hex($colors['primary']);
} else {
$color = $colors['primary'];
}
} else {
$color = \Filament\Support\Colors\Color::Amber;
}
$color = isset($colors['primary'])
? (is_string($colors['primary']) ? Color::hex($colors['primary']) : $colors['primary'])
: \Filament\Support\Colors\Color::Amber;

FilamentColor::register([
'default' => $color
'default' => $color,
]);


Expand Down

0 comments on commit 2239c53

Please sign in to comment.