Merge pull request #230 from lbryio/daemon-status-tweaks
update status call on About page and some style tweaks
This commit is contained in:
commit
de97703128
2 changed files with 9 additions and 5 deletions
|
@ -23,9 +23,10 @@ class AboutPage extends React.PureComponent {
|
||||||
versionInfo: info,
|
versionInfo: info,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Lbry.status({ session_status: true }).then(info => {
|
Lbry.status().then(info => {
|
||||||
|
console.log(info);
|
||||||
this.setState({
|
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;
|
const ver = this.state.versionInfo ? this.state.versionInfo : null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View>
|
<View style={aboutStyle.container}>
|
||||||
<PageHeader title={"About LBRY"}
|
<PageHeader title={"About LBRY"}
|
||||||
onBackPressed={() => { this.props.navigation.goBack(); }} />
|
onBackPressed={() => { this.props.navigation.goBack(); }} />
|
||||||
<ScrollView style={aboutStyle.scrollContainer}>
|
<ScrollView style={aboutStyle.scrollContainer}>
|
||||||
|
|
|
@ -2,9 +2,11 @@ import { StyleSheet } from 'react-native';
|
||||||
import Colors from './colors';
|
import Colors from './colors';
|
||||||
|
|
||||||
const aboutStyle = StyleSheet.create({
|
const aboutStyle = StyleSheet.create({
|
||||||
|
container: {
|
||||||
|
flex: 1
|
||||||
|
},
|
||||||
scrollContainer: {
|
scrollContainer: {
|
||||||
paddingTop: 16,
|
flex: 1
|
||||||
paddingBottom: 16
|
|
||||||
},
|
},
|
||||||
row: {
|
row: {
|
||||||
marginBottom: 1,
|
marginBottom: 1,
|
||||||
|
@ -18,6 +20,7 @@ const aboutStyle = StyleSheet.create({
|
||||||
color: Colors.LbryGreen,
|
color: Colors.LbryGreen,
|
||||||
fontSize: 24,
|
fontSize: 24,
|
||||||
fontFamily: 'Metropolis-SemiBold',
|
fontFamily: 'Metropolis-SemiBold',
|
||||||
|
marginTop: 16,
|
||||||
marginLeft: 12,
|
marginLeft: 12,
|
||||||
marginRight: 12,
|
marginRight: 12,
|
||||||
marginBottom: 8
|
marginBottom: 8
|
||||||
|
|
Loading…
Reference in a new issue