From 9413e37b482ea567460659552304c90043665a3b Mon Sep 17 00:00:00 2001 From: joaopaulolndev Date: Sat, 2 Nov 2024 09:52:51 +0000 Subject: [PATCH] Fix styling --- src/Livewire/CustomFieldsForm.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Livewire/CustomFieldsForm.php b/src/Livewire/CustomFieldsForm.php index d8cf38d..3bbc8b7 100644 --- a/src/Livewire/CustomFieldsForm.php +++ b/src/Livewire/CustomFieldsForm.php @@ -12,6 +12,7 @@ use Filament\Notifications\Notification; use Joaopaulolndev\FilamentEditProfile\Concerns\HasUser; use Throwable; + class CustomFieldsForm extends BaseProfileForm { use HasUser; @@ -76,7 +77,7 @@ private static function createField(string $fieldKey, array | Closure $field): ? private static function createFieldFromString(string $fieldKey, array $field): ?Forms\Components\Component { - try { + try { $class = \Illuminate\Support\Str::camel($field['type']); $class = "Filament\Forms\Components\\{$class}"; @@ -87,7 +88,8 @@ private static function createFieldFromString(string $fieldKey, array $field): ? ->required($field['required']) ->rules($field['rules']); - } catch (Throwable $exception) {} + } catch (Throwable $exception) { + } } private static function createTextInput(string $fieldKey, array $field): TextInput