Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsam726 authored and github-actions[bot] committed Apr 17, 2024
1 parent 9c38cb0 commit 3a0af9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Forms/Components/Flatpickr.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Carbon\Carbon;
use Carbon\CarbonInterface;
use Closure;
use Coolsam\FilamentFlatpickr\Enums\FlatpickrMode;
use Coolsam\FilamentFlatpickr\Enums\FlatpickrMonthSelectorType;
use Coolsam\FilamentFlatpickr\Enums\FlatpickrPosition;
Expand All @@ -12,7 +13,6 @@
use Filament\Forms\Components\Contracts;
use Filament\Forms\Components\Field;
use Filament\Support\Concerns\HasExtraAlpineAttributes;
use Closure;

class Flatpickr extends Field implements Contracts\CanBeLengthConstrained, Contracts\HasAffixActions
{
Expand Down Expand Up @@ -245,8 +245,8 @@ protected function setUp(): void
'
);
$this->theme(config('coolsam-flatpickr.default_theme', FlatpickrTheme::DEFAULT));
if(! $this->dehydrateStateUsing){

if (! $this->dehydrateStateUsing) {
$this->dehydrateStateUsing(static function (Flatpickr $component, $state) {
return self::dehydratePickerState($component, $state);
});
Expand Down

0 comments on commit 3a0af9f

Please sign in to comment.