Skip to content

Commit 357b5ba

Browse files
committed
[REMOVE] Unused methods
1 parent 9980e32 commit 357b5ba

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

resources/views/components/otp-input.blade.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
$suffixLabel = $getSuffixLabel();
1414
$statePath = $getStatePath();
1515
$numberInput = $getNumberInput();
16-
$hasAction = $getHasAction();
17-
$actionComplete = $getActionComplete();
1816
$isAutofocused = $isAutofocused();
1917
@endphp
2018

src/Components/OtpInput.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ class OtpInput extends Field implements Contracts\CanBeLengthConstrained, Contra
2121

2222
protected string $view = 'filament-otp-input::components.otp-input';
2323

24-
protected string | \Closure | null $action = null;
25-
protected bool $hasAction = false;
26-
2724
protected int | \Closure | null $numberInput = 4;
2825

2926

@@ -38,30 +35,4 @@ public function getNumberInput():int
3835
return $this->evaluate($this->numberInput);
3936
}
4037

41-
public function onComplete(string | \Closure $action):static
42-
{
43-
$this->action = $action;
44-
$this->hasAction = true;
45-
return $this;
46-
}
47-
48-
public function getActionComplete():string | Closure | null
49-
{
50-
return $this->evaluate($this->action);
51-
}
52-
public function getHasAction(): bool
53-
{
54-
return $this->hasAction;
55-
}
56-
57-
public function callComplete()
58-
{
59-
Notification::make()
60-
->title('test')
61-
->send();
62-
if ($this->hasAction){
63-
$this->getActionComplete();
64-
65-
}
66-
}
6738
}

0 commit comments

Comments
 (0)