Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmered committed Dec 4, 2024
1 parent 035054d commit f1436b5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Forms/Components/MoneyInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Pelmered\FilamentMoneyField\Forms\Components;

use Closure;
use Filament\Forms\Components\TextInput;
use Filament\Support\RawJs;
use Pelmered\FilamentMoneyField\Concerns\HasMoneyAttributes;
use Pelmered\FilamentMoneyField\Forms\Rules\MaxValueRule;
use Pelmered\FilamentMoneyField\Forms\Rules\MinValueRule;
use Pelmered\FilamentMoneyField\MoneyFormatter;
use Closure;

class MoneyInput extends TextInput
{
Expand Down Expand Up @@ -114,8 +114,7 @@ public function minValue(mixed $value): static

$this->rule(
static function (MoneyInput $component) {
$value = $component->getMinValue();
return new MinValueRule($value, $component);
return new MinValueRule($component->getMinValue(), $component);
},
static fn (MoneyInput $component): bool => filled($component->getMinValue())
);
Expand All @@ -129,8 +128,7 @@ public function maxValue(mixed $value): static

$this->rule(
static function (MoneyInput $component) {
$value = $component->getMaxValue();
return new MaxValueRule($value, $component);
return new MaxValueRule($component->getMaxValue(), $component);
},
static fn (MoneyInput $component): bool => filled($component->getMaxValue())
);
Expand Down

0 comments on commit f1436b5

Please sign in to comment.