2020-04-28 01:10:17 +03:00
|
|
|
module MessageV1 exposing (..)
|
|
|
|
|
|
|
|
{-| NOTE: requires elm-refactor alpha-220-g24db2f5 or later.
|
|
|
|
-}
|
|
|
|
|
|
|
|
import Nri.Ui.Message.V1 as Message
|
|
|
|
|
|
|
|
|
2020-04-28 02:30:09 +03:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Nri.Ui.Alert.V4
|
|
|
|
--
|
|
|
|
|
|
|
|
|
2020-04-28 01:10:17 +03:00
|
|
|
upgrade_Nri_Ui_Alert_V4_error content =
|
|
|
|
Message.tiny Message.Error (Message.Markdown content)
|
|
|
|
|
|
|
|
|
2020-04-28 01:25:18 +03:00
|
|
|
upgrade_Nri_Ui_Alert_V4_warning content =
|
|
|
|
Message.tiny Message.Warning (Message.Markdown content)
|
|
|
|
|
|
|
|
|
2020-04-28 01:29:06 +03:00
|
|
|
upgrade_Nri_Ui_Alert_V4_tip content =
|
|
|
|
Message.tiny Message.Tip (Message.Markdown content)
|
|
|
|
|
|
|
|
|
2020-04-28 01:22:43 +03:00
|
|
|
upgrade_Nri_Ui_Alert_V4_success content =
|
|
|
|
Message.tiny Message.Success (Message.Markdown content)
|
|
|
|
|
|
|
|
|
2020-04-28 01:10:17 +03:00
|
|
|
upgrade_Nri_Ui_Alert_V4_somethingWentWrong errorMessageForEngineers =
|
|
|
|
Message.somethingWentWrong errorMessageForEngineers
|
2020-04-28 02:30:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Nri.Ui.BannerAlert.V6
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
|
|
upgrade_Nri_Ui_BannerAlert_V6_alert content maybeOnDismiss =
|
|
|
|
Message.banner Message.Warning
|
|
|
|
(Message.Html content)
|
|
|
|
(List.filterMap identity
|
|
|
|
[ Maybe.map Message.onDismiss maybeOnDismiss
|
|
|
|
]
|
|
|
|
)
|