Skip to content

Commit

Permalink
fix(rn): network swarm key configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Godefroy Ponsinet <godefroy.ponsinet@outlook.com>
  • Loading branch information
90dy committed Mar 12, 2019
1 parent 1a8ffbb commit c4f4f48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions client/react-native/common/components/Library/Menu.js
Expand Up @@ -96,6 +96,7 @@ export default class Menu extends Component {
boldRight,
textRight,
customRight,
...otherProps
} = this.props
) {
return (
Expand All @@ -116,6 +117,7 @@ export default class Menu extends Component {
align='center'
onChangeText={onChangeText}
bold={boldLeft ? true : null}
{...otherProps}
>
{title}
</Text>
Expand Down
Expand Up @@ -46,12 +46,17 @@ export default class Network extends PureComponent {

render () {
if (this.state == null) {
return <Loader message='loading network config ...' />
return <Loader message='Loading network configuration ...' />
}
return (
<Menu>
<Menu.Section title='Privacy'>
<Menu.Input title='Swarm key' disaBLEd value={this.state.swarmKey} />
<Menu.Section title='Swarm key'>
<Menu.Input
title='Swarm key'
value={this.state.SwarmKey}
multiline={3}
onChangeText={SwarmKey => this.updateConfig({ SwarmKey })}
/>
</Menu.Section>
<Menu.Section title='Discovery'>
<Menu.Item
Expand Down

0 comments on commit c4f4f48

Please sign in to comment.