Skip to content

Commit

Permalink
fix(SocialIcon): handle button prop correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
darkbasic committed Nov 17, 2023
1 parent 72a4ac5 commit 4a7cbbf
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 @@ -210,9 +210,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 @@ -272,8 +272,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 4a7cbbf

Please sign in to comment.