Skip to content

Commit

Permalink
fix div width of payment metod title
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerGery committed Jan 25, 2024
1 parent cf64a87 commit 8e4f6b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const CardNameContainer = styled(View)`
justify-content: flex-start;
flex-direction: row;
align-items: center;
width: 55%;
width: ${({ fullWidth }) => (fullWidth ? '100%' : '55%')};
`;

const PromoButtonContainer = styled(View)`
Expand Down Expand Up @@ -158,7 +158,7 @@ const PaymentButton = ({
const IconColor = invalid ? '#F83743' : primaryColor;
return (
<Container>
<CardNameContainer>
<CardNameContainer fullWidth={!isCardPaymentMethod({ id })}>
{isCardPaymentMethod({ id }) ? <PaymentIcon type={brand || 'generic'} />
: (
<SvgIcon
Expand Down

0 comments on commit 8e4f6b5

Please sign in to comment.