From 910eb40c8632ca6e8a60938b2168d352289b8897 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Sun, 18 Mar 2018 02:43:54 +0100 Subject: [PATCH] got rid of iconToText --- src/Foundation.hs | 6 ------ templates/widgets/asidenav.hamlet | 6 ++++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Foundation.hs b/src/Foundation.hs index 037d2607f..123ca4cff 100644 --- a/src/Foundation.hs +++ b/src/Foundation.hs @@ -355,12 +355,6 @@ defaultMenuLayout menu widget = do $(widgetFile "standalone/sortable") $(widgetFile "standalone/inputs") withUrlRenderer $(hamletFile "templates/default-layout-wrapper.hamlet") - where - iconToText :: Maybe Text -> Text - iconToText mText = - "" ++ case mText of - Nothing -> "" - Just text -> text -- How to run database actions. instance YesodPersist UniWorX where diff --git a/templates/widgets/asidenav.hamlet b/templates/widgets/asidenav.hamlet index cb37d9e23..43c52c45b 100644 --- a/templates/widgets/asidenav.hamlet +++ b/templates/widgets/asidenav.hamlet @@ -4,9 +4,11 @@