zio/stable
Paul Frazee 2022-10-31 17:24:58 -05:00
parent fd6a2b1b40
commit d0b94d7570
4 changed files with 9 additions and 9 deletions

View File

@ -21,7 +21,7 @@ import Swipeable from 'react-native-gesture-handler/Swipeable'
import LinearGradient from 'react-native-linear-gradient' import LinearGradient from 'react-native-linear-gradient'
import {useStores} from '../../../state' import {useStores} from '../../../state'
import {s, colors, gradients} from '../../lib/styles' import {s, colors, gradients} from '../../lib/styles'
import {DEF_AVATER} from '../../lib/assets' import {DEF_AVATAR} from '../../lib/assets'
import {match} from '../../routes' import {match} from '../../routes'
import {LinkActionsModel} from '../../../state/models/shell' import {LinkActionsModel} from '../../../state/models/shell'
@ -146,7 +146,7 @@ export const Component = observer(() => {
<TouchableOpacity <TouchableOpacity
style={styles.fatMenuItem} style={styles.fatMenuItem}
onPress={() => onNavigate(`/profile/${store.me.name || ''}`)}> onPress={() => onNavigate(`/profile/${store.me.name || ''}`)}>
<Image style={styles.fatMenuImage} source={DEF_AVATER} /> <Image style={styles.fatMenuImage} source={DEF_AVATAR} />
<Text style={styles.fatMenuItemLabel} numberOfLines={1}> <Text style={styles.fatMenuItemLabel} numberOfLines={1}>
{store.me.displayName || store.me.name || 'My profile'} {store.me.displayName || store.me.name || 'My profile'}
</Text> </Text>

View File

@ -1,4 +1,4 @@
import {ImageSourcePropType} from 'react-native' import {ImageSourcePropType} from 'react-native'
export const DEF_AVATER: ImageSourcePropType = require('../../../public/img/default-avatar.jpg') export const DEF_AVATAR: ImageSourcePropType = require('../../../public/img/default-avatar.jpg')
export const BANNER: ImageSourcePropType = require('../../../public/img/beta-banner.jpg') export const BANNER: ImageSourcePropType = require('../../../public/img/beta-banner.jpg')

View File

@ -1,4 +1,4 @@
import {ImageSourcePropType} from 'react-native' import {ImageSourcePropType} from 'react-native'
export const DEF_AVATER: ImageSourcePropType = {uri: '/img/default-avatar.jpg'} export const DEF_AVATAR: ImageSourcePropType = {uri: '/img/default-avatar.jpg'}
export const BANNER: ImageSourcePropType = {uri: '/img/beta-banner.jpg'} export const BANNER: ImageSourcePropType = {uri: '/img/beta-banner.jpg'}

View File

@ -22,7 +22,7 @@ import {HomeIcon, UserGroupIcon} from '../../lib/icons'
import {UserAvatar} from '../../com/util/UserAvatar' import {UserAvatar} from '../../com/util/UserAvatar'
import {useStores} from '../../../state' import {useStores} from '../../../state'
import {s, colors} from '../../lib/styles' import {s, colors} from '../../lib/styles'
import {DEF_AVATER} from '../../lib/assets' import {DEF_AVATAR} from '../../lib/assets'
export const MainMenu = observer( export const MainMenu = observer(
({active, onClose}: {active: boolean; onClose: () => void}) => { ({active, onClose}: {active: boolean; onClose: () => void}) => {
@ -173,20 +173,20 @@ export const MainMenu = observer(
label="Create Scene" label="Create Scene"
url="/contacts" url="/contacts"
/> />
<MenuItemImage img={DEF_AVATER} label="Galaxy Brain" url="/" /> <MenuItemImage img={DEF_AVATAR} label="Galaxy Brain" url="/" />
<MenuItemImage <MenuItemImage
img={DEF_AVATER} img={DEF_AVATAR}
label="Paul's Friends" label="Paul's Friends"
url="/" url="/"
/> />
</View> </View>
<View style={[styles.menuItems]}> <View style={[styles.menuItems]}>
<MenuItemImage <MenuItemImage
img={DEF_AVATER} img={DEF_AVATAR}
label="Cool People Only" label="Cool People Only"
url="/" url="/"
/> />
<MenuItemImage img={DEF_AVATER} label="Techsky" url="/" /> <MenuItemImage img={DEF_AVATAR} label="Techsky" url="/" />
</View> </View>
</Animated.View> </Animated.View>
</SafeAreaView> </SafeAreaView>