Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtorres authored and github-actions[bot] committed Sep 30, 2023
1 parent 1c3878c commit cd61f5f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/Livewire/WithInlineInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public function setEditMode()
{
$this->editMode = true;

$this->dispatch('edit-mode',
$this->dispatch(
'edit-mode',
id: $this->model()->getKey(),
);
}
Expand Down
6 changes: 4 additions & 2 deletions src/Livewire/WithMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ trait WithMap
{
public function addPlaces(string $mapId, array $places)
{
$this->dispatch($mapId,
$this->dispatch(
$mapId,
type:'loadPlaces',
places:$this->formatPlaces($places),
);
}

public function flyTo(string $mapId, string $lng, string $lat)
{
$this->dispatch($mapId,
$this->dispatch(
$mapId,
type:'fly',
coordinate:[$lng, $lat],
);
Expand Down
9 changes: 6 additions & 3 deletions src/Livewire/WithNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ trait WithNotification
{
public function success(string $message, ?array $action = null)
{
$this->dispatch('notify',
$this->dispatch(
'notify',
message: $message,
type:'success',
action:$action,
Expand All @@ -15,7 +16,8 @@ public function success(string $message, ?array $action = null)

public function error(string $message, ?array $action = null)
{
$this->dispatch('notify',
$this->dispatch(
'notify',
message: $message,
type:'error',
action:$action,
Expand All @@ -24,7 +26,8 @@ public function error(string $message, ?array $action = null)

public function info(string $message, ?array $action = null)
{
$this->dispatch('notify',
$this->dispatch(
'notify',
message: $message,
type:'info',
action:$action,
Expand Down
3 changes: 2 additions & 1 deletion src/Livewire/WithStripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public function updateStripePaymentMethod(string $event, string $message)
$this->dispatch('stripe-payment-method-updated');

// Notify payment method was updated.
$this->dispatch(empty($event) ? 'notify' : $event,
$this->dispatch(
empty($event) ? 'notify' : $event,
type: 'success',
message: empty($message) ? 'Your payment method was updated!' : $message,
);
Expand Down

0 comments on commit cd61f5f

Please sign in to comment.