From f11b996ebf8f5da5b0a751333cbbf5e0c95bde7c Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 11 Aug 2021 19:50:24 +0200 Subject: [PATCH] app/View/Components/Notifications.php: minor fix. don't need $cssClasses array. e --- app/View/Components/Notifications.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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); } }