From a2094e9953876de3184d3a9b82a8250654382348 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 13 Aug 2018 21:40:46 +0100 Subject: [PATCH] update status call on About page and some style tweaks --- app/src/page/about/view.js | 7 ++++--- app/src/styles/about.js | 7 +++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/src/page/about/view.js b/app/src/page/about/view.js index 29edd73c..b2196ca2 100644 --- a/app/src/page/about/view.js +++ b/app/src/page/about/view.js @@ -23,9 +23,10 @@ class AboutPage extends React.PureComponent { versionInfo: info, }); }); - Lbry.status({ session_status: true }).then(info => { + Lbry.status().then(info => { + console.log(info); this.setState({ - lbryId: info.lbry_id, + lbryId: info.installation_id, }); }); } @@ -35,7 +36,7 @@ class AboutPage extends React.PureComponent { const ver = this.state.versionInfo ? this.state.versionInfo : null; return ( - + { this.props.navigation.goBack(); }} /> diff --git a/app/src/styles/about.js b/app/src/styles/about.js index d9697294..399f4424 100644 --- a/app/src/styles/about.js +++ b/app/src/styles/about.js @@ -2,9 +2,11 @@ import { StyleSheet } from 'react-native'; import Colors from './colors'; const aboutStyle = StyleSheet.create({ + container: { + flex: 1 + }, scrollContainer: { - paddingTop: 16, - paddingBottom: 16 + flex: 1 }, row: { marginBottom: 1, @@ -18,6 +20,7 @@ const aboutStyle = StyleSheet.create({ color: Colors.LbryGreen, fontSize: 24, fontFamily: 'Metropolis-SemiBold', + marginTop: 16, marginLeft: 12, marginRight: 12, marginBottom: 8