From dda067e729a3cefca03954bc305c75e54f0c483b Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Tue, 5 Mar 2019 14:45:26 +0100 Subject: [PATCH] add rewards button beside wallet balance button --- .../component/floatingWalletBalance/view.js | 21 ++++++++++++------ app/src/styles/floatingButton.js | 22 +++++++++++++++++-- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/app/src/component/floatingWalletBalance/view.js b/app/src/component/floatingWalletBalance/view.js index f48fb184..4719951c 100644 --- a/app/src/component/floatingWalletBalance/view.js +++ b/app/src/component/floatingWalletBalance/view.js @@ -16,13 +16,20 @@ class FloatingWalletBalance extends React.PureComponent { const { balance, navigation } = this.props; return ( - navigation && navigation.navigate({ routeName: 'WalletStack' })}> - {isNaN(balance) && } - - {(balance || balance === 0) && (formatCredits(parseFloat(balance), 2) + ' LBC')} - - + + navigation && navigation.navigate({ routeName: 'WalletStack' })}> + {isNaN(balance) && } + + {(balance || balance === 0) && (formatCredits(parseFloat(balance), 2) + ' LBC')} + + + + + get 40 + + + ); } } diff --git a/app/src/styles/floatingButton.js b/app/src/styles/floatingButton.js index 21587e3b..9c939984 100644 --- a/app/src/styles/floatingButton.js +++ b/app/src/styles/floatingButton.js @@ -2,8 +2,15 @@ import { StyleSheet } from 'react-native'; import Colors from './colors'; const floatingButtonStyle = StyleSheet.create({ - container: { + view: { position: 'absolute', + zIndex: 100, + borderRadius: 24, + padding: 14, + justifyContent: 'flex-end', + flexDirection: 'row' + }, + container: { zIndex: 100, borderRadius: 24, padding: 14, @@ -11,7 +18,7 @@ const floatingButtonStyle = StyleSheet.create({ paddingRight: 20, alignItems: 'center', justifyContent: 'center', - backgroundColor: Colors.BrighterLbryGreen, + backgroundColor: Colors.LbryGreen, shadowColor: 'black', shadowOpacity: 0.1, shadowRadius: StyleSheet.hairlineWidth, @@ -20,6 +27,17 @@ const floatingButtonStyle = StyleSheet.create({ }, elevation: 4 }, + pendingContainer: { + borderRadius: 24, + padding: 14, + paddingLeft: 70, + paddingRight: 20, + marginLeft: -60, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: Colors.BrighterLbryGreen, + elevation: 3 + }, text: { color: Colors.White, fontFamily: 'Inter-UI-Bold',