git.iko.soy/rowtype-yoga/purescript-radix-ui
on main help sign in
Remove children from Avatar
dceecbaMark Eibes
src/RadixUI/Avatar.purs+2−3
@@ -51,12 +51,11 @@ type ImageProps =
51 , onLoadingStatusChange :: Opt (ImageLoadingStatus -> Effect Unit)
51 , onLoadingStatusChange :: Opt (ImageLoadingStatus -> Effect Unit)
52 }
52 }
53
53
54−image :: forall p kids. Coerce p ImageProps => IsJSX kids => p -> kids -> JSX
54+image :: forall p. Coerce p ImageProps => p -> JSX
55−image props' kids = do
55+image props' = do
56 let props = coerce props' :: ImageProps
56 let props = coerce props' :: ImageProps
57 React.element imageImpl $ props
57 React.element imageImpl $ props
58 { onLoadingStatusChange = pseudoMap (mkEffectFn1 <<< (toImageLoadingStatus >>> _)) props.onLoadingStatusChange }
58 { onLoadingStatusChange = pseudoMap (mkEffectFn1 <<< (toImageLoadingStatus >>> _)) props.onLoadingStatusChange }
59− # unsafeWithChildren kids
60
59
61
60
62type FallbackProps =
61type FallbackProps =