diff --git a/app/View/Components/Notifications.php b/app/View/Components/Notifications.php index 752c82f..2a7a2b6 100644 --- a/app/View/Components/Notifications.php +++ b/app/View/Components/Notifications.php @@ -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); } }