app/View/Components/Notifications.php: minor fix. don't need $cssClasses array.
e
This commit is contained in:
parent
c1b67af42d
commit
f11b996ebf
1 changed files with 1 additions and 12 deletions
|
|
@ -21,16 +21,6 @@ class Notifications extends Component
|
|||
*/
|
||||
public string $position = 'center';
|
||||
|
||||
/**
|
||||
* Type and css class mapping.
|
||||
*/
|
||||
protected $cssClasses = [
|
||||
'info' => 'info',
|
||||
'success' => 'success',
|
||||
'warning' => 'warning',
|
||||
'error' => 'danger'
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*
|
||||
|
|
@ -43,8 +33,7 @@ class Notifications extends Component
|
|||
foreach($this->types as $type) {
|
||||
|
||||
if (Session::has($type)) {
|
||||
$class = $this->cssClasses[$type];
|
||||
$messages[$class] = Session::get($type);
|
||||
$messages[$type] = Session::get($type);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue