Skip to content

Commit

Permalink
fix(rn): update settings screen
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 Sep 28, 2018
1 parent e636fb0 commit ddb7c12
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions client/react-native/common/components/Screens/Settings/List.js
Expand Up @@ -8,18 +8,15 @@ import { colors } from '../../../constants'
export default class List extends PureComponent {
static Menu = ({
navigation,
data: { displayName, overrideDisplayName },
data: { id, displayName, overrideDisplayName },
}) => (
<Menu absolute>
<Menu.Header
icon={
<Image
style={{ width: 78, height: 78, borderRadius: 39 }}
source={{
uri:
'https://api.adorable.io/avatars/285/' +
(overrideDisplayName || displayName) +
'.png',
uri: 'https://api.adorable.io/avatars/285/' + id + '.png',
}}
/>
}
Expand Down Expand Up @@ -65,17 +62,17 @@ export default class List extends PureComponent {
<Menu.Item
icon='terminal'
title='Dev tools'
onPress={() => this.props.navigation.push('settings/devtools')}
onPress={() => navigation.push('settings/devtools')}
/>
<Menu.Item
icon='life-buoy'
title='help'
onPress={() => console.log('settings/help')}
onPress={() => navigation.push('settings/help')}
/>
<Menu.Item
icon='layers'
title='Legal terms'
onPress={() => console.log('settings/legal-terms')}
onPress={() => navigation.push('settings/layers')}
/>
</Menu.Section>
</Menu>
Expand Down

0 comments on commit ddb7c12

Please sign in to comment.