diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.js
index eb5ce203e..37cf6bf7d 100644
--- a/apps/mobile/src/components/Menu/index.js
+++ b/apps/mobile/src/components/Menu/index.js
@@ -1,13 +1,9 @@
import React from 'react';
-import {ScrollView, StatusBar, View} from 'react-native';
+import {ScrollView, View} from 'react-native';
+import {useSafeAreaInsets} from 'react-native-safe-area-context';
import {useTracked} from '../../provider';
import {Actions} from '../../provider/Actions';
-import {ColorSection} from './ColorSection';
-import {MenuListItem} from './MenuListItem';
-import {TagsSection} from './TagsSection';
-import {UserSection} from './UserSection';
-import Seperator from '../Seperator';
-import {useSafeAreaInsets} from 'react-native-safe-area-context';
+import {DDS} from '../../services/DeviceDetection';
import {
ACCENT,
COLOR_SCHEME,
@@ -15,61 +11,73 @@ import {
COLOR_SCHEME_LIGHT,
setColorScheme,
} from '../../utils/Colors';
-import {MenuItemsList} from "../../utils/index"
+import {MenuItemsList} from '../../utils/index';
import {MMKV} from '../../utils/mmkv';
+import {SIZE} from '../../utils/SizeUtils';
+import Seperator from '../Seperator';
+import Heading from '../Typography/Heading';
+import Paragraph from '../Typography/Paragraph';
+import {ColorSection} from './ColorSection';
+import {MenuListItem} from './MenuListItem';
+import {TagsSection} from './TagsSection';
+import {UserSection} from './UserSection';
-export const Menu = ({close = () => {}, hide, noTextMode = false}) => {
- const [state, dispatch] = useTracked();
- const {colors} = state;
- const insets = useSafeAreaInsets();
+export const Menu = React.memo(
+ () => {
+ const [state, dispatch] = useTracked();
+ const {colors} = state;
+ const insets = useSafeAreaInsets();
+ const noTextMode = DDS.isTab && !DDS.isSmallTab;
+ function changeColorScheme(colors = COLOR_SCHEME, accent = ACCENT) {
+ let newColors = setColorScheme(colors, accent);
+ dispatch({type: Actions.THEME, colors: newColors});
+ }
- function changeColorScheme(colors = COLOR_SCHEME, accent = ACCENT) {
- let newColors = setColorScheme(colors, accent);
- dispatch({type: Actions.THEME, colors: newColors});
- }
+ React.useEffect(() => {
+ console.log('rerendering drawer');
+ });
- const BottomItemsList = [
- {
- name: 'Night mode',
- icon: 'theme-light-dark',
- func: () => {
- if (!colors.night) {
- MMKV.setStringAsync('theme', JSON.stringify({night: true}));
- changeColorScheme(COLOR_SCHEME_DARK);
- } else {
- MMKV.setStringAsync('theme', JSON.stringify({night: false}));
- changeColorScheme(COLOR_SCHEME_LIGHT);
- }
+ const BottomItemsList = [
+ {
+ name: 'Night mode',
+ icon: 'theme-light-dark',
+ func: () => {
+ if (!colors.night) {
+ MMKV.setStringAsync('theme', JSON.stringify({night: true}));
+ changeColorScheme(COLOR_SCHEME_DARK);
+ } else {
+ MMKV.setStringAsync('theme', JSON.stringify({night: false}));
+ changeColorScheme(COLOR_SCHEME_LIGHT);
+ }
+ },
+ switch: true,
+ on: !!colors.night,
+ close: false,
},
- switch: true,
- on: !!colors.night,
- close: false,
- },
- {
- name: 'Settings',
- icon: 'cog-outline',
- close: true,
- },
- ];
-
- return (
-