Skip to content

Commit

Permalink
feat: onchain receive fees
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Jul 13, 2023
1 parent b2d7331 commit 258ee58
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/button-group/button-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const useStyles = makeStyles(({ colors }, selected: boolean) => ({
alignItems: "center",
justifyContent: "space-between",
padding: 10,
paddingVertical: 14,
paddingVertical: 10,
marginHorizontal: 3,
borderRadius: 5,
backgroundColor: selected ? colors.grey5 : colors.grey4,
Expand Down
2 changes: 1 addition & 1 deletion app/screens/receive-bitcoin-screen/qr-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const QRView: React.FC<Props> = ({
if (copyToClipboard) copyToClipboard()
Animated.timing(scaleAnim, {
toValue: 1,
duration: 10,
duration: 50,
useNativeDriver: true,
}).start()
}
Expand Down
16 changes: 16 additions & 0 deletions app/screens/receive-bitcoin-screen/receive-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,20 @@ const ReceiveScreen = () => {
setReceivingWallet,
} = request

const OnChainCharge =
request.feesInformation?.deposit.minBankFee &&
request.feesInformation?.deposit.minBankFeeThreshold &&
request.type === Invoice.OnChain ? (
<View style={{ marginTop: 10, alignItems: "center" }}>
<Text type="p4">
{LL.ReceiveScreen.fees({
minBankFee: request.feesInformation?.deposit.minBankFee,
minBankFeeThreshold: request.feesInformation?.deposit.minBankFeeThreshold,
})}
</Text>
</View>
) : undefined

return (
<>
<Screen
Expand Down Expand Up @@ -180,6 +194,8 @@ const ReceiveScreen = () => {
style={styles.note}
/>

{OnChainCharge}

<SetLightningAddressModal
isVisible={request.isSetLightningAddressModalVisible}
toggleModal={request.toggleIsSetLightningAddressModalVisible}
Expand Down

0 comments on commit 258ee58

Please sign in to comment.