diff --git a/src/Filament/Resources/Concernes/CanPaginateViewRecord.php b/src/Filament/Resources/Concernes/CanPaginateViewRecord.php index 47e4261..0e21b84 100644 --- a/src/Filament/Resources/Concernes/CanPaginateViewRecord.php +++ b/src/Filament/Resources/Concernes/CanPaginateViewRecord.php @@ -23,7 +23,7 @@ protected function configureAction(Action $action): void protected function configurePreviousAction(Action $action): void { if ($this->getPreviousRecord()) { - $action->url(fn(): string => static::getResource()::getUrl('view', ['record' => $this->getPreviousRecord()])); + $action->url(fn (): string => static::getResource()::getUrl('view', ['record' => $this->getPreviousRecord()])); } else { $action ->disabled() @@ -34,7 +34,7 @@ protected function configurePreviousAction(Action $action): void protected function configureNextAction(Action $action): void { if ($this->getNextRecord()) { - $action->url(fn(): string => static::getResource()::getUrl('view', ['record' => $this->getNextRecord()])); + $action->url(fn (): string => static::getResource()::getUrl('view', ['record' => $this->getNextRecord()])); } else { $action ->disabled() diff --git a/src/Filament/Resources/EmailResource/Pages/ViewEmail.php b/src/Filament/Resources/EmailResource/Pages/ViewEmail.php index 4aeb0c5..219ba11 100644 --- a/src/Filament/Resources/EmailResource/Pages/ViewEmail.php +++ b/src/Filament/Resources/EmailResource/Pages/ViewEmail.php @@ -3,16 +3,15 @@ namespace RickDBCN\FilamentEmail\Filament\Resources\EmailResource\Pages; use Filament\Actions\Action; -use Filament\Actions\Concerns\InteractsWithActions; use Filament\Notifications\Notification; use Filament\Resources\Pages\ViewRecord; use Filament\Support\Enums\ActionSize; use Illuminate\Support\Facades\Storage; -use RickDBCN\FilamentEmail\Filament\Resources\EmailResource; -use RickDBCN\FilamentEmail\Models\Email; use RickDBCN\FilamentEmail\Filament\Resources\Actions\NextAction; use RickDBCN\FilamentEmail\Filament\Resources\Actions\PreviousAction; use RickDBCN\FilamentEmail\Filament\Resources\Concernes\CanPaginateViewRecord; +use RickDBCN\FilamentEmail\Filament\Resources\EmailResource; +use RickDBCN\FilamentEmail\Models\Email; class ViewEmail extends ViewRecord {