Skip to content

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

fix ui inconsistencies

Ammar Ahmedc2dce9b9eae3
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js
index b569cd453..f0a98077c 100644
--- a/apps/mobile/src/components/ActionSheetComponent/index.js
+++ b/apps/mobile/src/components/ActionSheetComponent/index.js
@@ -272,8 +272,29 @@ export const ActionSheetComponent = ({
},
{
name: 'Publish',
- icon: 'link-box-outline',
+ icon: 'cloud-upload-outline',
func: async () => {
+ if (!user) {
+ ToastEvent.show({
+ heading: 'Login required',
+ message: 'Login to publish note',
+ context: 'local',
+ func: () => {
+ eSendEvent(eOpenLoginDialog);
+ },
+ actionText: 'Login',
+ });
+ return;
+ }
+
+ if (!user.isEmailConfirmed) {
+ ToastEvent.show({
+ heading: 'Email not verified',
+ message: 'Please verify your email first.',
+ context: 'local',
+ });
+ return;
+ }
close();
await sleep(300);
eSendEvent(eOpenPublishNoteDialog, note);
diff --git a/apps/mobile/src/views/Editor/EditorHeader.js b/apps/mobile/src/views/Editor/EditorHeader.js
index e6a9a0ddc..b0d2e8477 100644
--- a/apps/mobile/src/views/Editor/EditorHeader.js
+++ b/apps/mobile/src/views/Editor/EditorHeader.js
@@ -149,8 +149,8 @@ const EditorHeader = () => {
if (!user) {
ToastEvent.show({
heading: 'Login required',
- message: 'Login to publish to monograph',
- context: context,
+ message: 'Login to publish',
+ context: "global",
func: () => {
eSendEvent(eOpenLoginDialog);
},
@@ -163,7 +163,7 @@ const EditorHeader = () => {
ToastEvent.show({
heading: 'Email not verified',
message: 'Please verify your email first.',
- context: context,
+ context: "global",
});
return;
}