From 98c06126686bc0f411094b0201aff2e1f3ed60d5 Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Thu, 11 Nov 2021 13:42:10 -0800 Subject: [PATCH] init -> noError --- src/InputErrorAndGuidanceInternal.elm | 8 ++++---- src/Nri/Ui/Select/V8.elm | 2 +- src/Nri/Ui/TextInput/V7.elm | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/InputErrorAndGuidanceInternal.elm b/src/InputErrorAndGuidanceInternal.elm index d45ab16e..630c4435 100644 --- a/src/InputErrorAndGuidanceInternal.elm +++ b/src/InputErrorAndGuidanceInternal.elm @@ -1,12 +1,12 @@ module InputErrorAndGuidanceInternal exposing - ( ErrorState, init + ( ErrorState, noError , setErrorIf, setErrorMessage , getIsInError, getErrorMessage ) {-| -@docs ErrorState, init +@docs ErrorState, noError @docs setErrorIf, setErrorMessage @docs getIsInError, getErrorMessage @@ -20,8 +20,8 @@ type ErrorState {-| -} -init : ErrorState -init = +noError : ErrorState +noError = NoError diff --git a/src/Nri/Ui/Select/V8.elm b/src/Nri/Ui/Select/V8.elm index 9d2f3d07..3817cdcf 100644 --- a/src/Nri/Ui/Select/V8.elm +++ b/src/Nri/Ui/Select/V8.elm @@ -207,7 +207,7 @@ defaultConfig = , choices = [] , valueToString = Nothing , defaultDisplayText = Nothing - , error = InputErrorAndGuidanceInternal.init + , error = InputErrorAndGuidanceInternal.noError , hideLabel = False , noMarginTop = False , containerCss = [] diff --git a/src/Nri/Ui/TextInput/V7.elm b/src/Nri/Ui/TextInput/V7.elm index 48aade46..8360da30 100644 --- a/src/Nri/Ui/TextInput/V7.elm +++ b/src/Nri/Ui/TextInput/V7.elm @@ -485,7 +485,7 @@ emptyConfig = { inputStyle = InputStyles.Standard , inputCss = [] , guidance = Nothing - , error = InputErrorAndGuidanceInternal.init + , error = InputErrorAndGuidanceInternal.noError , disabled = False , loading = False , hideLabel = False