Skip to content

Commit

Permalink
Update email.blade.php (#42388)
Browse files Browse the repository at this point in the history
* Update email.blade.php

Change switch to match

* Update email.blade.php

* Update src/Illuminate/Notifications/resources/views/email.blade.php

Co-authored-by: Faissal Wahabali <fwahabali@gmail.com>

Co-authored-by: Faissal Wahabali <fwahabali@gmail.com>
  • Loading branch information
Hannah Massey and faissaloux authored May 15, 2022
1 parent 1a8fc1b commit afb4641
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Illuminate/Notifications/resources/views/email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,10 @@
{{-- Action Button --}}
@isset($actionText)
<?php
switch ($level) {
case 'success':
case 'error':
$color = $level;
break;
default:
$color = 'primary';
}
$color = match ($level) {
'success', 'error' => $level,
default => 'primary',
};
?>
@component('mail::button', ['url' => $actionUrl, 'color' => $color])
{{ $actionText }}
Expand Down

0 comments on commit afb4641

Please sign in to comment.