1
0
Fork 0

app/View/Components/Notifications.php: minor fix. don't need $cssClasses array.

e
This commit is contained in:
Henrik Hautakoski 2021-08-11 19:50:24 +02:00
parent c1b67af42d
commit f11b996ebf

View file

@ -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);
}
}