From 4ce424d4db8007cc02a66ff972fbbb70bacf3df1 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Tue, 2 Apr 2019 12:00:33 +0100 Subject: [PATCH] move unclaimed reward amount to the left of floating wallet balance --- app/src/component/floatingWalletBalance/view.js | 12 ++++++------ app/src/styles/floatingButton.js | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/component/floatingWalletBalance/view.js b/app/src/component/floatingWalletBalance/view.js index fed4c24..5568ff3 100644 --- a/app/src/component/floatingWalletBalance/view.js +++ b/app/src/component/floatingWalletBalance/view.js @@ -18,6 +18,12 @@ class FloatingWalletBalance extends React.PureComponent { return ( + {unclaimedRewardAmount > 0 && + navigation && navigation.navigate({ routeName: 'Rewards' })} > + + {unclaimedRewardAmount} + } navigation && navigation.navigate({ routeName: 'WalletStack' })}> {isNaN(balance) && } @@ -25,12 +31,6 @@ class FloatingWalletBalance extends React.PureComponent { {(balance || balance === 0) && (formatCredits(parseFloat(balance), 2) + ' LBC')} - {unclaimedRewardAmount > 0 && - navigation && navigation.navigate({ routeName: 'Rewards' })} > - - {unclaimedRewardAmount} - } ); } diff --git a/app/src/styles/floatingButton.js b/app/src/styles/floatingButton.js index c8dd00b..073d473 100644 --- a/app/src/styles/floatingButton.js +++ b/app/src/styles/floatingButton.js @@ -30,9 +30,9 @@ const floatingButtonStyle = StyleSheet.create({ pendingContainer: { borderRadius: 24, padding: 14, - paddingLeft: 70, - paddingRight: 20, - marginLeft: -60, + paddingLeft: 20, + paddingRight: 70, + marginRight: -60, alignItems: 'center', justifyContent: 'center', backgroundColor: Colors.BrighterLbryGreen,