File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ spaceChildrenEvenly :: E.Style
132132spaceChildrenEvenly =
133133 E .css
134134 { " & > *" :
135- E .selector
135+ E .nested
136136 $ E .css
137137 { flex: E .str " 1 0 auto"
138138 }
Original file line number Diff line number Diff line change @@ -26,8 +26,9 @@ import Control.Monad.Except (runExcept)
2626import Data.Array as Array
2727import Data.Either (Either (..))
2828import Data.Function.Uncurried (Fn2 , runFn2 )
29+ import Data.Symbol (SProxy (..))
2930import Foreign as F
30- import Prim.Row (class Nub )
31+ import Prim.Row (class Lacks )
3132import React.Basic (JSX , ReactComponent )
3233import Record as Record
3334import Type.Row.Homogeneous (class Homogeneous )
@@ -86,14 +87,12 @@ class IsStyleProperty a where
8687-- | `css` prop.
8788element ::
8889 forall props .
89- Nub
90- ( className :: String , css :: Style | props )
91- ( className :: String , css :: Style | props ) =>
90+ Lacks " css" props =>
9291 Style ->
9392 ReactComponent { className :: String | props } ->
9493 { className :: String | props } ->
9594 JSX
96- element s c p = runFn2 element_ c (Record .merge { css: s } p)
95+ element s c p = runFn2 element_ c (Record .insert ( SProxy :: _ " css " ) s p)
9796
9897foreign import element_ ::
9998 forall props .
You can’t perform that action at this time.
0 commit comments