From 36229191c730713e7b21ab8089e626340aae387b Mon Sep 17 00:00:00 2001 From: atmonshi Date: Wed, 17 Jul 2024 15:39:53 +0000 Subject: [PATCH] Fix styling --- src/Filament/Resources/FaqResource.php | 2 +- src/Filament/Resources/FaqResource/Pages/ListFaqs.php | 2 +- src/Filament/Resources/LibraryResource.php | 4 ++-- src/Filament/Resources/LibraryResource/Pages/ListLibrary.php | 2 +- src/Filament/Resources/PageResource.php | 4 ++-- src/Filament/Resources/PostResource.php | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Filament/Resources/FaqResource.php b/src/Filament/Resources/FaqResource.php index 9f1c724..7ee665b 100644 --- a/src/Filament/Resources/FaqResource.php +++ b/src/Filament/Resources/FaqResource.php @@ -100,7 +100,7 @@ public static function getActions(): array if (class_exists(\LaraZeus\Helen\HelenServiceProvider::class)) { //@phpstan-ignore-next-line $action[] = \LaraZeus\Helen\Actions\ShortUrlAction::make('get-link') - ->distUrl(fn (): string => route(SkyPlugin::get()->getRouteNamePrefix().'faq')); + ->distUrl(fn (): string => route(SkyPlugin::get()->getRouteNamePrefix() . 'faq')); } return [ActionGroup::make($action)]; diff --git a/src/Filament/Resources/FaqResource/Pages/ListFaqs.php b/src/Filament/Resources/FaqResource/Pages/ListFaqs.php index 6d0a165..4d9e722 100644 --- a/src/Filament/Resources/FaqResource/Pages/ListFaqs.php +++ b/src/Filament/Resources/FaqResource/Pages/ListFaqs.php @@ -23,7 +23,7 @@ protected function getActions(): array ->color('warning') ->icon('heroicon-o-arrow-top-right-on-square') ->label(__('Open')) - ->url(fn (): string => route(SkyPlugin::get()->getRouteNamePrefix().'faq')) + ->url(fn (): string => route(SkyPlugin::get()->getRouteNamePrefix() . 'faq')) ->openUrlInNewTab(), LocaleSwitcher::make(), ]; diff --git a/src/Filament/Resources/LibraryResource.php b/src/Filament/Resources/LibraryResource.php index b2f173d..7f6b10d 100644 --- a/src/Filament/Resources/LibraryResource.php +++ b/src/Filament/Resources/LibraryResource.php @@ -195,7 +195,7 @@ public static function getActions(): array ->color('warning') ->icon('heroicon-o-arrow-top-right-on-square') ->label(__('Open')) - ->url(fn (Library $record): string => route(SkyPlugin::get()->getRouteNamePrefix().'library.item', ['slug' => $record->slug])) + ->url(fn (Library $record): string => route(SkyPlugin::get()->getRouteNamePrefix() . 'library.item', ['slug' => $record->slug])) ->openUrlInNewTab(), DeleteAction::make('delete') ->label(__('Delete')), @@ -204,7 +204,7 @@ public static function getActions(): array if (class_exists(\LaraZeus\Helen\HelenServiceProvider::class)) { //@phpstan-ignore-next-line $action[] = \LaraZeus\Helen\Actions\ShortUrlAction::make('get-link') - ->distUrl(fn (Library $record): string => route(SkyPlugin::get()->getRouteNamePrefix().'library.item', ['slug' => $record->slug])); + ->distUrl(fn (Library $record): string => route(SkyPlugin::get()->getRouteNamePrefix() . 'library.item', ['slug' => $record->slug])); } return [ActionGroup::make($action)]; diff --git a/src/Filament/Resources/LibraryResource/Pages/ListLibrary.php b/src/Filament/Resources/LibraryResource/Pages/ListLibrary.php index 6c48409..3a9ce61 100644 --- a/src/Filament/Resources/LibraryResource/Pages/ListLibrary.php +++ b/src/Filament/Resources/LibraryResource/Pages/ListLibrary.php @@ -23,7 +23,7 @@ protected function getActions(): array ->color('warning') ->icon('heroicon-o-arrow-top-right-on-square') ->label(__('Open')) - ->url(fn (): string => route(SkyPlugin::get()->getRouteNamePrefix().'library')) + ->url(fn (): string => route(SkyPlugin::get()->getRouteNamePrefix() . 'library')) ->openUrlInNewTab(), LocaleSwitcher::make(), ]; diff --git a/src/Filament/Resources/PageResource.php b/src/Filament/Resources/PageResource.php index 0b70d4b..92c0404 100644 --- a/src/Filament/Resources/PageResource.php +++ b/src/Filament/Resources/PageResource.php @@ -229,7 +229,7 @@ public static function getActions(): array ->color('warning') ->icon('heroicon-o-arrow-top-right-on-square') ->label(__('Open')) - ->url(fn (Post $record): string => route(SkyPlugin::get()->getRouteNamePrefix().'page', ['slug' => $record])) + ->url(fn (Post $record): string => route(SkyPlugin::get()->getRouteNamePrefix() . 'page', ['slug' => $record])) ->openUrlInNewTab(), DeleteAction::make('delete'), ForceDeleteAction::make(), @@ -239,7 +239,7 @@ public static function getActions(): array if (class_exists(\LaraZeus\Helen\HelenServiceProvider::class)) { //@phpstan-ignore-next-line $action[] = \LaraZeus\Helen\Actions\ShortUrlAction::make('get-link') - ->distUrl(fn (Post $record): string => route(SkyPlugin::get()->getRouteNamePrefix().'page', ['slug' => $record])); + ->distUrl(fn (Post $record): string => route(SkyPlugin::get()->getRouteNamePrefix() . 'page', ['slug' => $record])); } return [ActionGroup::make($action)]; diff --git a/src/Filament/Resources/PostResource.php b/src/Filament/Resources/PostResource.php index e9f27d4..eff8b74 100644 --- a/src/Filament/Resources/PostResource.php +++ b/src/Filament/Resources/PostResource.php @@ -271,7 +271,7 @@ public static function getActions(): array ->color('warning') ->icon('heroicon-o-arrow-top-right-on-square') ->label(__('Open')) - ->url(fn (Post $record): string => route(SkyPlugin::get()->getRouteNamePrefix().'post', ['slug' => $record])) + ->url(fn (Post $record): string => route(SkyPlugin::get()->getRouteNamePrefix() . 'post', ['slug' => $record])) ->openUrlInNewTab(), DeleteAction::make('delete'), ForceDeleteAction::make(), @@ -281,7 +281,7 @@ public static function getActions(): array if (class_exists(\LaraZeus\Helen\HelenServiceProvider::class)) { //@phpstan-ignore-next-line $action[] = \LaraZeus\Helen\Actions\ShortUrlAction::make('get-link') - ->distUrl(fn (Post $record): string => route(SkyPlugin::get()->getRouteNamePrefix().'post', ['slug' => $record])); + ->distUrl(fn (Post $record): string => route(SkyPlugin::get()->getRouteNamePrefix() . 'post', ['slug' => $record])); } return [ActionGroup::make($action)];