Skip to content

Commit

Permalink
fix(Avatar): change position default values
Browse files Browse the repository at this point in the history
  • Loading branch information
CaioAugustoR committed Oct 19, 2023
1 parent d1d1091 commit e2f58eb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/yoga/src/Avatar/native/Avatar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ const Avatar = forwardRef(
children,
fill,
stroke,
borderRadius,
width,
height,
borderRadius = 'small',
width = 48,
height = 48,
...props
},
ref,
) => {
return (
<Contain
width={width || 48}
height={height || 48}
borderRadius={borderRadius || 'small'}
width={width}
height={height}
borderRadius={borderRadius}
display="flex"
alignItems="center"
justifyContent="center"
Expand All @@ -72,7 +72,7 @@ const Avatar = forwardRef(
width="100%"
height="100%"
overflow="hidden"
borderRadius={borderRadius || 'small'}
borderRadius={borderRadius}
{...props}
>
<Content
Expand Down

0 comments on commit e2f58eb

Please sign in to comment.