Skip to content

Commit 7c4e67b

Browse files
committed
Clean up redundant view content
1 parent df58760 commit 7c4e67b

26 files changed

Lines changed: 239 additions & 275 deletions

File tree

docs-assets/app/public/css/filament/filament/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-assets/app/public/css/filament/support/support.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-assets/app/public/js/filament/support/schema.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-assets/app/public/js/filament/support/support.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/panels/src/Auth/Pages/EditProfile.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
use Filament\Pages\Concerns;
1515
use Filament\Pages\Page;
1616
use Filament\Panel;
17+
use Filament\Schemas\Components\Actions;
1718
use Filament\Schemas\Components\Component;
18-
use Filament\Schemas\Components\Decorations\Layouts\FormActionsDecorations;
1919
use Filament\Schemas\Components\Form;
2020
use Filament\Schemas\Components\Group;
2121
use Filament\Schemas\Components\NestedSchema;
@@ -452,10 +452,12 @@ public function getFormContentComponent(): Component
452452
return Form::make([NestedSchema::make('form')])
453453
->id('form')
454454
->livewireSubmitHandler('save')
455-
->footer(FormActionsDecorations::make($this->getFormActions())
456-
->alignment($this->getFormActionsAlignment())
457-
->fullWidth($this->hasFullWidthFormActions())
458-
->sticky((! static::isSimple()) && $this->areFormActionsSticky()));
455+
->footer([
456+
Actions::make($this->getFormActions())
457+
->alignment($this->getFormActionsAlignment())
458+
->fullWidth($this->hasFullWidthFormActions())
459+
->sticky((! static::isSimple()) && $this->areFormActionsSticky()),
460+
]);
459461
}
460462

461463
public function getMultiFactorAuthenticationContentComponent(): ?Component

packages/panels/src/Auth/Pages/Login.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
use Filament\Models\Contracts\FilamentUser;
1717
use Filament\Notifications\Notification;
1818
use Filament\Pages\SimplePage;
19+
use Filament\Schemas\Components\Actions;
1920
use Filament\Schemas\Components\Component;
20-
use Filament\Schemas\Components\Decorations\Layouts\FormActionsDecorations;
2121
use Filament\Schemas\Components\Form;
2222
use Filament\Schemas\Components\Group;
2323
use Filament\Schemas\Components\NestedSchema;
@@ -394,9 +394,11 @@ public function getFormContentComponent(): Component
394394
return Form::make([NestedSchema::make('form')])
395395
->id('form')
396396
->livewireSubmitHandler('authenticate')
397-
->footer(FormActionsDecorations::make($this->getFormActions())
398-
->alignment($this->getFormActionsAlignment())
399-
->fullWidth($this->hasFullWidthFormActions()))
397+
->footer([
398+
Actions::make($this->getFormActions())
399+
->alignment($this->getFormActionsAlignment())
400+
->fullWidth($this->hasFullWidthFormActions()),
401+
])
400402
->visible(fn (): bool => blank($this->userUndertakingMultiFactorAuthentication));
401403
}
402404

@@ -405,9 +407,11 @@ public function getMultiFactorChallengeFormContentComponent(): Component
405407
return Form::make([NestedSchema::make('multiFactorChallengeForm')])
406408
->id('multiFactorChallengeForm')
407409
->livewireSubmitHandler('authenticate')
408-
->footer(FormActionsDecorations::make($this->getMultiFactorChallengeFormActions())
409-
->alignment($this->getMultiFactorChallengeFormActionsAlignment())
410-
->fullWidth($this->hasFullWidthMultiFactorChallengeFormActions()))
410+
->footer([
411+
Actions::make($this->getMultiFactorChallengeFormActions())
412+
->alignment($this->getMultiFactorChallengeFormActionsAlignment())
413+
->fullWidth($this->hasFullWidthMultiFactorChallengeFormActions()),
414+
])
411415
->visible(fn (): bool => filled($this->userUndertakingMultiFactorAuthentication));
412416
}
413417

packages/panels/src/Auth/Pages/PasswordReset/RequestPasswordReset.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
use Filament\Forms\Components\TextInput;
1313
use Filament\Notifications\Notification;
1414
use Filament\Pages\SimplePage;
15+
use Filament\Schemas\Components\Actions;
1516
use Filament\Schemas\Components\Component;
16-
use Filament\Schemas\Components\Decorations\Layouts\FormActionsDecorations;
1717
use Filament\Schemas\Components\Form;
1818
use Filament\Schemas\Components\NestedSchema;
1919
use Filament\Schemas\Components\RenderHook;
@@ -204,8 +204,10 @@ public function getFormContentComponent(): Component
204204
return Form::make([NestedSchema::make('form')])
205205
->id('form')
206206
->livewireSubmitHandler('request')
207-
->footer(FormActionsDecorations::make($this->getFormActions())
208-
->alignment($this->getFormActionsAlignment())
209-
->fullWidth($this->hasFullWidthFormActions()));
207+
->footer([
208+
Actions::make($this->getFormActions())
209+
->alignment($this->getFormActionsAlignment())
210+
->fullWidth($this->hasFullWidthFormActions()),
211+
]);
210212
}
211213
}

packages/panels/src/Auth/Pages/PasswordReset/ResetPassword.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use Filament\Forms\Components\TextInput;
1212
use Filament\Notifications\Notification;
1313
use Filament\Pages\SimplePage;
14+
use Filament\Schemas\Components\Actions;
1415
use Filament\Schemas\Components\Component;
15-
use Filament\Schemas\Components\Decorations\Layouts\FormActionsDecorations;
1616
use Filament\Schemas\Components\Form;
1717
use Filament\Schemas\Components\NestedSchema;
1818
use Filament\Schemas\Components\RenderHook;
@@ -204,8 +204,10 @@ public function getFormContentComponent(): Component
204204
return Form::make([NestedSchema::make('form')])
205205
->id('form')
206206
->livewireSubmitHandler('resetPassword')
207-
->footer(FormActionsDecorations::make($this->getFormActions())
208-
->alignment($this->getFormActionsAlignment())
209-
->fullWidth($this->hasFullWidthFormActions()));
207+
->footer([
208+
Actions::make($this->getFormActions())
209+
->alignment($this->getFormActionsAlignment())
210+
->fullWidth($this->hasFullWidthFormActions()),
211+
]);
210212
}
211213
}

packages/panels/src/Auth/Pages/Register.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
use Filament\Notifications\Notification;
1616
use Filament\Pages\Concerns\CanUseDatabaseTransactions;
1717
use Filament\Pages\SimplePage;
18+
use Filament\Schemas\Components\Actions;
1819
use Filament\Schemas\Components\Component;
19-
use Filament\Schemas\Components\Decorations\Layouts\FormActionsDecorations;
2020
use Filament\Schemas\Components\Form;
2121
use Filament\Schemas\Components\NestedSchema;
2222
use Filament\Schemas\Components\RenderHook;
@@ -305,8 +305,10 @@ public function getFormContentComponent(): Component
305305
return Form::make([NestedSchema::make('form')])
306306
->id('form')
307307
->livewireSubmitHandler('register')
308-
->footer(FormActionsDecorations::make($this->getFormActions())
309-
->alignment($this->getFormActionsAlignment())
310-
->fullWidth($this->hasFullWidthFormActions()));
308+
->footer([
309+
Actions::make($this->getFormActions())
310+
->alignment($this->getFormActionsAlignment())
311+
->fullWidth($this->hasFullWidthFormActions()),
312+
]);
311313
}
312314
}

packages/panels/src/Pages/Tenancy/EditTenantProfile.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
use Filament\Pages\Concerns;
1010
use Filament\Pages\Page;
1111
use Filament\Panel;
12+
use Filament\Schemas\Components\Actions;
1213
use Filament\Schemas\Components\Component;
13-
use Filament\Schemas\Components\Decorations\Layouts\FormActionsDecorations;
1414
use Filament\Schemas\Components\Form;
1515
use Filament\Schemas\Components\NestedSchema;
1616
use Filament\Schemas\Schema;
@@ -247,10 +247,12 @@ public function getFormContentComponent(): Component
247247
return Form::make([NestedSchema::make('form')])
248248
->id('form')
249249
->livewireSubmitHandler('save')
250-
->footer(FormActionsDecorations::make($this->getFormActions())
251-
->alignment($this->getFormActionsAlignment())
252-
->fullWidth($this->hasFullWidthFormActions())
253-
->sticky($this->areFormActionsSticky()));
250+
->footer([
251+
Actions::make($this->getFormActions())
252+
->alignment($this->getFormActionsAlignment())
253+
->fullWidth($this->hasFullWidthFormActions())
254+
->sticky($this->areFormActionsSticky()),
255+
]);
254256
}
255257

256258
protected function hasFullWidthFormActions(): bool

0 commit comments

Comments
 (0)