diff --git a/src/view/shell/mobile/MainMenu.tsx b/src/view/shell/mobile/MainMenu.tsx index 1532d5a8a7..04b2f02482 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,