Skip to content

Commit

Permalink
Update README.md (#353)
Browse files Browse the repository at this point in the history
Replacing the static method of getting the class name.
  • Loading branch information
kirgus authored Sep 8, 2023
1 parent d2fb82e commit eaa380a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function update()
$this->user->update($data);

$this->closeModalWithEvents([
UserOverview::getName() => 'userModified',
UserOverview::class => 'userModified',
]);
}
```
Expand All @@ -247,7 +247,7 @@ public function update()
$this->user->update($data);

$this->closeModalWithEvents([
UserOverview::getName() => ['userModified', [$this->user->id]],
UserOverview::class => ['userModified', [$this->user->id]],
]);
}
```
Expand Down Expand Up @@ -339,7 +339,7 @@ class DeleteTeam extends ModalComponent
$this->team->delete();

$this->skipPreviousModal()->closeModalWithEvents([
TeamOverview::getName() => 'teamDeleted'
TeamOverview::class => 'teamDeleted'
]);
}

Expand Down

0 comments on commit eaa380a

Please sign in to comment.