Skip to content

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

optimize bottom sync notifer card design on sheet

ammarahm-ed994d7cc7122f
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js
index c21186d0a..e9cb1bcd8 100644
--- a/apps/mobile/src/components/ActionSheetComponent/index.js
+++ b/apps/mobile/src/components/ActionSheetComponent/index.js
@@ -657,7 +657,7 @@ export const ActionSheetComponent = ({
positiveType: 'errorShade'
});
}
- },
+ }
];
let width = dimensions.width > 600 ? 600 : 500;
@@ -738,7 +738,6 @@ export const ActionSheetComponent = ({
Keyboard.dismiss();
}}
/>
-
{!note || !note.id ? (
<Paragraph style={{marginVertical: 10, alignSelf: 'center'}}>
Start writing to save your note.
@@ -896,11 +895,9 @@ export const ActionSheetComponent = ({
</View>
</View>
)}
-
{hasColors && note.id ? (
<ActionSheetColorsSection close={close} item={note} />
) : null}
-
{note.id || note.dateCreated ? (
<FlatList
data={rowItemsData.filter(
@@ -924,24 +921,24 @@ export const ActionSheetComponent = ({
renderItem={({item, index}) => _renderRowItem(item)}
/>
) : null}
-
- {note.type === 'note' && user && lastSynced >= note.dateEdited ? (
+ {user && lastSynced >= note.dateModified ? (
<View
style={{
- paddingVertical: 10,
- width: '95%',
- alignItems: 'flex-start',
+ paddingVertical: 0,
+ width: '100%',
paddingHorizontal: 12,
+ alignItems: 'center',
flexDirection: 'row',
justifyContent: 'flex-start',
alignSelf: 'center',
- backgroundColor: colors.nav,
- borderRadius: 5
+ paddingTop: 5,
+ borderTopWidth: 1,
+ borderTopColor: colors.nav
}}>
<Icon
name="shield-key-outline"
color={colors.accent}
- size={SIZE.sm + SIZE.xs + 1}
+ size={SIZE.xxxl}
/>
<View
@@ -951,9 +948,9 @@ export const ActionSheetComponent = ({
flexShrink: 1
}}>
<Heading
- color={colors.accent}
+ color={colors.heading}
+ size={SIZE.xs}
style={{
- fontSize: SIZE.sm,
flexWrap: 'wrap'
}}>
Encrypted and synced
@@ -979,14 +976,13 @@ export const ActionSheetComponent = ({
);
} catch (e) {}
}}
- fontSize={SIZE.sm}
+ fontSize={SIZE.xs + 1}
title="Learn more"
height={30}
- type="accent"
+ type="transparent"
/>
</View>
) : null}
-
{settings.devMode ? (
<View
style={{
@@ -1028,7 +1024,6 @@ export const ActionSheetComponent = ({
/>
</View>
) : null}
-
{DDS.isTab ? (
<View
style={{