Externalize strings in other of components

This commit is contained in:
Eike Kettner
2021-04-09 22:39:44 +02:00
parent 2f678aca17
commit fa2c5750dd
53 changed files with 490 additions and 223 deletions

View File

@ -12,7 +12,6 @@ module Comp.Basic exposing
, secondaryBasicButton
, secondaryButton
, stats
, tooltipRight
)
import Html exposing (..)
@ -176,18 +175,18 @@ linkLabel model =
genericLink model.icon model.label attrs
loadingDimmer : Bool -> Html msg
loadingDimmer active =
loadingDimmer : { label : String, active : Bool } -> Html msg
loadingDimmer cfg =
div
[ classList
[ ( "hidden", not active )
[ ( "hidden", not cfg.active )
]
, class S.dimmer
]
[ div [ class "text-gray-200" ]
[ i [ class "fa fa-circle-notch animate-spin" ] []
, span [ class "ml-2" ]
[ text "Loading"
[ text cfg.label
]
]
]
@ -279,17 +278,6 @@ inputRequired =
]
tooltipRight : Bool -> String -> Html msg
tooltipRight show msg =
div
[ class "absolute bottom-0 right-5 px-2 py-2 rounded-lg z-50 w-40"
, class "bg-white border"
, class "text-sm font-thin"
]
[ text msg
]
--- Helpers