Skip to content

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

add login button

ammarahm-ed1638ea90fe18
diff --git a/apps/mobile/src/components/Container/index.js b/apps/mobile/src/components/Container/index.js
index 699d246f0..f5560b02c 100644
--- a/apps/mobile/src/components/Container/index.js
+++ b/apps/mobile/src/components/Container/index.js
@@ -13,7 +13,7 @@ import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {br, opacity, pv, SIZE, WEIGHT} from '../../common/common';
import {useTracked} from '../../provider';
import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/eventManager';
-import {eScrollEvent} from '../../services/events';
+import {eScrollEvent, eOpenLoginDialog} from '../../services/events';
import {getElevation, h, w} from '../../utils/utils';
import {Header} from '../header';
import {Search} from '../SearchInput';
diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.js
index b11b7e80c..a8476aead 100644
--- a/apps/mobile/src/components/Menu/index.js
+++ b/apps/mobile/src/components/Menu/index.js
@@ -604,44 +604,56 @@ export const Menu = ({
) : (
<TouchableOpacity
onPress={() => {
- close();
-
DDS.isTab
? eSendEvent(eOpenLoginDialog)
: NavigationService.navigate('Login');
}}
activeOpacity={opacity / 2}
style={{
- ...getElevation(2),
- paddingVertical: pv + 5,
+ paddingVertical: 12,
+ marginVertical: 5,
+ marginTop: pv + 5,
+ borderRadius: 5,
width: '100%',
- justifyContent: noTextMode ? 'center' : 'flex-start',
- alignItems: 'center',
flexDirection: 'row',
- backgroundColor: noTextMode ? 'transparent' : colors.accent,
- borderRadius: 5,
- paddingHorizontal: noTextMode ? 0 : 6,
+ alignItems: 'center',
+ backgroundColor: colors.shade,
+
+ paddingHorizontal: 12,
}}>
<Icon
style={{
- minWidth: noTextMode ? 5 : 35,
- textAlign: 'left',
+ width: 30,
+ textAlign: 'center',
+ backgroundColor: colors.accent,
+ height: 30,
+ borderRadius: 100,
+ textAlignVertical: 'center',
}}
- name="login"
- color={noTextMode ? colors.accent : 'white'}
- size={SIZE.lg}
+ name="account-outline"
+ color="white"
+ size={SIZE.md}
/>
-
- {noTextMode ? null : (
+ <View
+ style={{
+ marginLeft: 10,
+ }}>
<Text
style={{
fontFamily: WEIGHT.regular,
- color: 'white',
- fontSize: SIZE.md,
+ color: colors.icon,
+ fontSize: SIZE.xs,
}}>
- Login
+ You are not logged in
</Text>
- )}
+ <Text
+ style={{
+ color: colors.accent,
+ fontSize: SIZE.sm - 2,
+ }}>
+ Login to sync notes.
+ </Text>
+ </View>
</TouchableOpacity>
)}
</View>
diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js
index c424380ef..828536e68 100644
--- a/apps/mobile/src/views/Settings/index.js
+++ b/apps/mobile/src/views/Settings/index.js
@@ -199,8 +199,8 @@ export const Settings = ({navigation}) => {
}}
activeOpacity={opacity / 2}
style={{
- paddingVertical: 12,
- marginVertical: 5,
+ paddingVertical: pv + 5,
+ marginBottom: pv + 5,
width: '100%',
flexDirection: 'row',
alignItems: 'center',
@@ -237,7 +237,7 @@ export const Settings = ({navigation}) => {
style={{
color: colors.accent,
}}>
- Login to enable sync.
+ Login to sync notes.
</Text>
</View>