Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
fix: style of pay invoice page on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Jan 10, 2020
1 parent 55b5613 commit 11d5bed
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/views/reverse/steps/payInvoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,21 @@ class PayInvoice extends React.Component {

return (
<View className={classes.wrapper}>
<View className={classes.qrcode}>
<DetectResize>
{width =>
width <= 375 ? (
<QrCode size={200} link={swapResponse.invoice} />
) : (
<QrCode size={300} link={swapResponse.invoice} />
)
}
</DetectResize>
</View>
{window.innerWidth < 768 ? (
<div />
) : (
<View className={classes.qrcode}>
<DetectResize>
{width =>
width <= 375 ? (
<QrCode size={200} link={swapResponse.invoice} />
) : (
<QrCode size={300} link={swapResponse.invoice} />
)
}
</DetectResize>
</View>
)}
<View className={classes.info}>
<p className={classes.title}>
Pay this {swapInfo.base} Lightning invoice:
Expand Down

0 comments on commit 11d5bed

Please sign in to comment.