Skip to content

Commit

Permalink
fix(SocialIcon): handle button prop correctly (#3860)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkbasic committed Jan 29, 2024
1 parent 548e6d3 commit cec04af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/base/src/SocialIcon/SocialIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ export const SocialIcon: RneFunctionComponent<SocialIconProps> = ({
borderRadius: iconSize * 2,
},
{ backgroundColor: type && colors[type] },
{
{ height: iconSize * 2 + 4 },
!button && {
width: iconSize * 2 + 4,
height: iconSize * 2 + 4,
borderRadius: iconSize * 2,
},
light && { backgroundColor: 'white' },
Expand Down Expand Up @@ -274,8 +274,8 @@ const styles = StyleSheet.create({
alignItems: 'center',
},
button: {
paddingTop: 14,
paddingBottom: 14,
paddingVertical: 14,
paddingHorizontal: 21,
},
raised: {
...Platform.select({
Expand Down

0 comments on commit cec04af

Please sign in to comment.