git.iko.soy/rowtype-yoga/ry-blocks
on main help sign in
Refactoring input
commitd38e25fd323a808932d6ecb81ece03ea3cf014ba authorMark Eibes <mark.eibes@gmail.com> dateTue 29 Dec 2020, 17:37 (6 years ago) parent12d4996
1 file changed+1−2
src/Yoga/Block/Atom/Input/View.purs+1−2
src/Yoga/Block/Atom/Input/View.purs+1−2
@@ -10,7 +10,6 @@ import Framer.Motion as M
1010import Partial.Unsafe (unsafeCrashWith)
1111import React.Basic.DOM (CSS, css)
1212import React.Basic.DOM as R
13−import React.Basic.Emotion (Style)
1413import React.Basic.Hooks as React
1514import Web.HTML.HTMLInputElement as InputElement
1615import Yoga.Block.Atom.Icon as Icon
@@ -209,7 +208,7 @@ rawComponent =
209208 rawContainer
210209 </ { label: (mkLabel <$> props.label) ?|| mempty
211210 , hasFocus: hasFocus
212− , isInvalid: aria # Object.lookup "invalid" <#> (_ == "true")
211+ , isInvalid: aria # Object.lookup "invalid" <#> (_ == "true") # maybeToOp
213212 , css: props.css
214213 }
215214 /> [ leading # foldMap \l -> div </ { ref: leftIconRef } /> [ l ]