From 1dc7d07c959d0dbbf81a618422c15ceb94338353 Mon Sep 17 00:00:00 2001 From: George Daneke Date: Wed, 19 Jun 2024 11:17:29 +0300 Subject: [PATCH] fixes --- app/Filament/Pages/Auth/Login.php | 4 ++-- app/Filament/Widgets/Locations.php | 10 ++++------ app/Filament/Widgets/RecentlyAdded.php | 1 - 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/app/Filament/Pages/Auth/Login.php b/app/Filament/Pages/Auth/Login.php index 34c03b2..f276b1c 100644 --- a/app/Filament/Pages/Auth/Login.php +++ b/app/Filament/Pages/Auth/Login.php @@ -11,8 +11,8 @@ public function mount(): void parent::mount(); $this->form->fill([ - 'email' => 'admin@filamentphp.com', - 'password' => 'password', + 'email' => 'demo@example.com', + 'password' => 'demo@example.com', 'remember' => true, ]); } diff --git a/app/Filament/Widgets/Locations.php b/app/Filament/Widgets/Locations.php index e46b126..4276344 100644 --- a/app/Filament/Widgets/Locations.php +++ b/app/Filament/Widgets/Locations.php @@ -2,9 +2,7 @@ namespace App\Filament\Widgets; -use App\Filament\Resources\ItemResource; use App\Filament\Resources\LocationResource; -use App\Models\Item; use App\Models\Location; use Filament\Tables; use Filament\Tables\Columns\Layout\Stack; @@ -25,15 +23,15 @@ public function table(Table $table): Table ->defaultSort('created_at', 'desc') ->columns([ Stack::make([ - Tables\Columns\TextColumn::make('name') - ->searchable()->sortable(), -]) + Tables\Columns\TextColumn::make('name') + ->searchable()->sortable(), + ]), ]) ->contentGrid([ 'md' => 2, 'xl' => 3, ]) - ->actions([ + ->actions([ Tables\Actions\Action::make('open') ->url(fn (Location $record): string => LocationResource::getUrl('edit', ['record' => $record])), ]); diff --git a/app/Filament/Widgets/RecentlyAdded.php b/app/Filament/Widgets/RecentlyAdded.php index 953b954..ec54418 100644 --- a/app/Filament/Widgets/RecentlyAdded.php +++ b/app/Filament/Widgets/RecentlyAdded.php @@ -5,7 +5,6 @@ use App\Filament\Resources\ItemResource; use App\Models\Item; use Filament\Tables; -use Filament\Tables\Columns\CheckboxColumn; use Filament\Tables\Table; use Filament\Widgets\TableWidget as BaseWidget;