Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopaulolndev authored and github-actions[bot] committed Nov 2, 2024
1 parent 45f63c8 commit 9413e37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Livewire/CustomFieldsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Filament\Notifications\Notification;
use Joaopaulolndev\FilamentEditProfile\Concerns\HasUser;
use Throwable;

class CustomFieldsForm extends BaseProfileForm
{
use HasUser;
Expand Down Expand Up @@ -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}";
Expand All @@ -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
Expand Down

0 comments on commit 9413e37

Please sign in to comment.