From 82558b0021673a3a431acc9b134689283846aa91 Mon Sep 17 00:00:00 2001 From: atmonshi Date: Sat, 9 Dec 2023 14:11:00 +0000 Subject: [PATCH] Fix styling --- src/Filament/Resources/LayoutResource/Pages/CreateLayout.php | 2 +- src/Livewire/Layouts.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Filament/Resources/LayoutResource/Pages/CreateLayout.php b/src/Filament/Resources/LayoutResource/Pages/CreateLayout.php index 663190b..81d2c9e 100644 --- a/src/Filament/Resources/LayoutResource/Pages/CreateLayout.php +++ b/src/Filament/Resources/LayoutResource/Pages/CreateLayout.php @@ -34,7 +34,7 @@ class CreateLayout extends Page implements Forms\Contracts\HasForms public array $widgetsData; - public function mount(int $record = null): void + public function mount(?int $record = null): void { if ($record === null) { $layoutModel = RainPlugin::get()->getModel('Layout'); diff --git a/src/Livewire/Layouts.php b/src/Livewire/Layouts.php index c843389..a1dd781 100644 --- a/src/Livewire/Layouts.php +++ b/src/Livewire/Layouts.php @@ -10,7 +10,7 @@ class Layouts extends Component { public Layout $layout; - public function mount(string $slug = null): void + public function mount(?string $slug = null): void { if ($slug === null) { $this->layout = config('zeus-rain.models.Layout')::where('layout_slug', config('zeus-rain.defaultLayout'))->firstOrFail();