Skip to content

Commit

Permalink
fix(fscomponents): fix missing icon for paypal button on web
Browse files Browse the repository at this point in the history
This adds missing dimension styles to the icons in the PaypalCheckoutButton component so the PayPal logo is visible on web.
  • Loading branch information
bweissbart committed Apr 13, 2020
1 parent 2c172b8 commit 545cea6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/fscomponents/src/components/PayPalCheckoutButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ const styles = StyleSheet.create({
},
tagLine: {
textAlign: 'center'
},
icon: {
width: 99,
height: 24
}
});

Expand Down Expand Up @@ -96,6 +100,7 @@ export class PayPalCheckoutButton extends Component<PayPalCheckoutButtonProps> {
<View style={{paddingVertical: 10}}>
<Button
icon={selectedTheme.icon}
iconStyle={styles.icon}
underlayColor={selectedTheme.bgActive}
{...buttonProps}
/>
Expand Down

0 comments on commit 545cea6

Please sign in to comment.