git.iko.soy/rowtype-yoga/purescript-radix-ui
on main help sign in
Allow arrow children
commitd5ffe6a27782efeebc540454f6f360e3e1964988 authorMark Eibes <mark.eibes@gmail.com> dateSat 22 Jul 2023, 22:09 (3 years ago) parent2f9e0f7
1 file changed+4−3
src/RadixUI/Tooltip.purs+4−3
src/RadixUI/Tooltip.purs+4−3
@@ -135,7 +135,8 @@ type ArrowProps =
135135
136136foreign import arrowImpl ∷ ∀ a. ReactComponent { | a }
137137
138−arrow ∷ ∀ p. Coerce p ArrowProps ⇒ p → JSX
139−arrow props = React.element arrowImpl
140− $ (coerce props ∷ ArrowProps)
138+arrow ∷ ∀ p kids. IsJSX kids => Coerce p ArrowProps ⇒ p → kids -> JSX
139+arrow props kids = React.element arrowImpl
140+ $ (coerce props ∷ ArrowProps)# RB.build
141+ ( RB.insert (Proxy :: Proxy "children") kids)
141142