Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick1904 committed Jan 25, 2022
1 parent 95064be commit 4322822
Showing 1 changed file with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,41 +46,41 @@ const StyledContainer = styled(Container)`
}
`;

const StyledBuyButton = styled(FormButton)`
&&&& {
border-radius: 16px;
flex: 1;
margin-right: 8px;
// const StyledBuyButton = styled(FormButton)`
// &&&& {
// border-radius: 16px;
// flex: 1;
// margin-right: 8px;

:last-child {
margin-right: 0;
}
}
`;
// :last-child {
// margin-right: 0;
// }
// }
// `;

const BuyButton = ({
amountUSD,
onClickBuyButton,
moonpayIsAvailable
}) => {
// const BuyButton = ({
// amountUSD,
// onClickBuyButton,
// moonpayIsAvailable
// }) => {

const getBuyButtonLabel = (amountUSD) => {
if (amountUSD) {
return `$${amountUSD}`;
}
return (<Translate id='account.createImplicitAccount.customAmount' />);
};
// const getBuyButtonLabel = (amountUSD) => {
// if (amountUSD) {
// return `$${amountUSD}`;
// }
// return (<Translate id='account.createImplicitAccount.customAmount' />);
// };

return (
<StyledBuyButton
disabled={!moonpayIsAvailable}
color='light-blue'
onClick={() => onClickBuyButton(amountUSD)}
>
{getBuyButtonLabel(amountUSD)}
</StyledBuyButton>
);
};
// return (
// <StyledBuyButton
// disabled={!moonpayIsAvailable}
// color='light-blue'
// onClick={() => onClickBuyButton(amountUSD)}
// >
// {getBuyButtonLabel(amountUSD)}
// </StyledBuyButton>
// );
// };

export default ({
onClickBuyButton,
Expand Down

0 comments on commit 4322822

Please sign in to comment.