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
132
132
spaceChildrenEvenly =
133
133
E .css
134
134
{ " & > *" :
135
- E .selector
135
+ E .nested
136
136
$ E .css
137
137
{ flex: E .str " 1 0 auto"
138
138
}
Original file line number Diff line number Diff line change @@ -26,8 +26,9 @@ import Control.Monad.Except (runExcept)
26
26
import Data.Array as Array
27
27
import Data.Either (Either (..))
28
28
import Data.Function.Uncurried (Fn2 , runFn2 )
29
+ import Data.Symbol (SProxy (..))
29
30
import Foreign as F
30
- import Prim.Row (class Nub )
31
+ import Prim.Row (class Lacks )
31
32
import React.Basic (JSX , ReactComponent )
32
33
import Record as Record
33
34
import Type.Row.Homogeneous (class Homogeneous )
@@ -86,14 +87,12 @@ class IsStyleProperty a where
86
87
-- | `css` prop.
87
88
element ::
88
89
forall props .
89
- Nub
90
- ( className :: String , css :: Style | props )
91
- ( className :: String , css :: Style | props ) =>
90
+ Lacks " css" props =>
92
91
Style ->
93
92
ReactComponent { className :: String | props } ->
94
93
{ className :: String | props } ->
95
94
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)
97
96
98
97
foreign import element_ ::
99
98
forall props .
You can’t perform that action at this time.
0 commit comments