Skip to content

Commit

Permalink
Fix border method to always set true value
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis committed Oct 17, 2024
1 parent 8dc221c commit bae8ac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ You can add a border to the alert by using the `border` method.
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;

SimpleAlert::make('example')
->border(true)
->border()
```
### Actions

Expand Down
2 changes: 1 addition & 1 deletion src/Components/Concerns/HasBorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trait HasBorder
{
protected Closure|bool $border = false;

public function border(Closure|bool $condition = false): static
public function border(Closure|bool $condition = true): static
{
$this->border = $condition;

Expand Down

0 comments on commit bae8ac1

Please sign in to comment.