From 0fd2c3c4cb6aca88cf68a7f95cbdbea8a41d0bd8 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 1 Nov 2022 10:06:24 -0500 Subject: Update scene items in mainmenu to use generated avatars --- src/view/shell/mobile/MainMenu.tsx | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) (limited to 'src') diff --git a/src/view/shell/mobile/MainMenu.tsx b/src/view/shell/mobile/MainMenu.tsx index 1532d5a8a..04b2f0248 100644 --- a/src/view/shell/mobile/MainMenu.tsx +++ b/src/view/shell/mobile/MainMenu.tsx @@ -1,8 +1,6 @@ import React, {useEffect} from 'react' import {observer} from 'mobx-react-lite' import { - Image, - ImageSourcePropType, StyleSheet, SafeAreaView, Text, @@ -22,7 +20,6 @@ import {HomeIcon, UserGroupIcon} from '../../lib/icons' import {UserAvatar} from '../../com/util/UserAvatar' import {useStores} from '../../../state' import {s, colors} from '../../lib/styles' -import {DEF_AVATAR} from '../../lib/assets' export const MainMenu = observer( ({active, onClose}: {active: boolean; onClose: () => void}) => { @@ -91,13 +88,11 @@ export const MainMenu = observer( ) - const MenuItemImage = ({ - img, + const MenuItemActor = ({ label, url, count, }: { - img: ImageSourcePropType label: string url: string count?: number @@ -105,7 +100,9 @@ export const MainMenu = observer( onNavigate(url)}> - + + + {count ? ( {count} @@ -178,20 +175,12 @@ export const MainMenu = observer( label="Create Scene" url="/contacts" /> - - + + - - + + @@ -271,12 +260,6 @@ const styles = StyleSheet.create({ menuItemMargin: { marginRight: 10, }, - menuItemImg: { - borderRadius: 30, - width: 60, - height: 60, - marginBottom: 5, - }, menuItemIconWrapper: { borderRadius: 6, width: 60, -- cgit 1.4.1