style: run rector
This commit is contained in:
@@ -193,7 +193,7 @@ class PanelSettings extends AbstractPageSettings
|
||||
->rgb()
|
||||
->regex('/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/')
|
||||
->live()
|
||||
->afterStateUpdated(function ($state, callable $set): void {
|
||||
->afterStateUpdated(function (string $state, callable $set): void {
|
||||
$shades = ColorHelper::generateOklchFromRGBShades($state);
|
||||
$set('panel_color_shade_' . $this->getPanelID(), $shades ?? '// Invalid RGB');
|
||||
})
|
||||
|
||||
@@ -170,8 +170,8 @@ class DashPanelProvider extends PanelProvider
|
||||
private function applyConditionalConfiguration(Panel $panel): void
|
||||
{
|
||||
$actions = [
|
||||
'login' => [$this->panelLogin, fn(): \Filament\Panel => $panel->login()],
|
||||
'register' => [$this->panelRegistration, fn(): \Filament\Panel => $panel->registration()],
|
||||
'login' => [$this->panelLogin, $panel->login(...)],
|
||||
'register' => [$this->panelRegistration, $panel->registration(...)],
|
||||
'profile' => [$this->panelProfile, fn(): \Filament\Panel => $panel->profile()],
|
||||
'spa' => [$this->panelSPA, fn(): \Filament\Panel => $panel
|
||||
->spa(hasPrefetching: $this->panelSPAPrefetch)
|
||||
|
||||
Reference in New Issue
Block a user