Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

minor ui changes

ammarahm-ed674a08b77890
diff --git a/apps/mobile/src/components/Header/HeaderMenu.js b/apps/mobile/src/components/Header/HeaderMenu.js
index 69840d158..6b15a3c09 100644
--- a/apps/mobile/src/components/Header/HeaderMenu.js
+++ b/apps/mobile/src/components/Header/HeaderMenu.js
@@ -1,13 +1,12 @@
import React from 'react';
-import {TouchableOpacity} from 'react-native';
+import { TouchableOpacity } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
-import {useTracked} from '../../provider';
-import {eSendEvent} from '../../services/EventManager';
-import {getElevation} from '../../utils';
-import {eOpenSortDialog} from '../../utils/Events';
-import {SIZE} from '../../utils/SizeUtils';
+import { useTracked } from '../../provider';
+import { eSendEvent } from '../../services/EventManager';
+import { getElevation } from '../../utils';
+import { eOpenSortDialog } from '../../utils/Events';
+import { SIZE } from '../../utils/SizeUtils';
import Heading from '../Typography/Heading';
-import Paragraph from '../Typography/Paragraph';
export const HeaderMenu = () => {
const [state] = useTracked();
@@ -28,7 +27,7 @@ export const HeaderMenu = () => {
backgroundColor: colors.accent,
paddingHorizontal: 8,
borderRadius: 100,
- ...getElevation(5)
+ ...getElevation(2)
}}>
<Heading
color={colors.light}
diff --git a/apps/mobile/src/components/JumpToDialog/index.js b/apps/mobile/src/components/JumpToDialog/index.js
index 5085c3b8a..57a03ca57 100644
--- a/apps/mobile/src/components/JumpToDialog/index.js
+++ b/apps/mobile/src/components/JumpToDialog/index.js
@@ -124,28 +124,30 @@ const JumpToDialog = () => {
}}>
{notes
.filter((i) => i.type === 'header')
- .map((item, index) => (
- <PressableButton
- key={item.title}
- onPress={() => onPress(item, index)}
- type={currentIndex === index? 'shade' : 'gray'}
- customStyle={{
- minWidth: '20%',
- maxWidth: '46%',
- width: null,
- padding: 15,
- margin: 5,
- }}>
- <Paragraph
- size={SIZE.xs}
- color={currentIndex === index ? colors.accent : null}
- style={{
- textAlign: 'center',
+ .map((item, index) => {
+ return item.title ? (
+ <PressableButton
+ key={item.title}
+ onPress={() => onPress(item, index)}
+ type={currentIndex === index ? 'shade' : 'gray'}
+ customStyle={{
+ minWidth: '20%',
+ maxWidth: '46%',
+ width: null,
+ padding: 15,
+ margin: 5,
}}>
- {item.title}
- </Paragraph>
- </PressableButton>
- ))}
+ <Paragraph
+ size={SIZE.sm}
+ color={currentIndex === index ? colors.accent : null}
+ style={{
+ textAlign: 'center',
+ }}>
+ {item.title}
+ </Paragraph>
+ </PressableButton>
+ ) : null;
+ })}
</View>
</ScrollView>
</View>