Skip to content

Commit

Permalink
make action method public
Browse files Browse the repository at this point in the history
  • Loading branch information
mansoorkhan96 committed Mar 21, 2024
1 parent 9327021 commit 4f87fe9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Actions/UnsplashPickerAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function imageSize(ImageSize $imageSize): static
return $this;
}

protected function uploadImage($arguments, Component $livewire, FileUpload $component)
public function uploadImage($arguments, Component $livewire, FileUpload $component)
{
$downloadLink = Arr::get($arguments, $this->getImageSize()->getPath());

Expand All @@ -118,17 +118,17 @@ protected function uploadImage($arguments, Component $livewire, FileUpload $comp
))->delay(now()->addDay());
}

protected function getImageSize(): ImageSize
public function getImageSize(): ImageSize
{
return $this->imageSize ?? ImageSize::Regular;
}

protected function getPerPage(): ?int
public function getPerPage(): ?int
{
return $this->perPage;
}

protected function getOptions()
public function getOptions()
{
if (! $this->getPerPage()) {
return;
Expand Down

0 comments on commit 4f87fe9

Please sign in to comment.