From 50f84780bb4b0c2fc1e8645d9612f7dcefd5fe19 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Thu, 23 Mar 2023 13:23:04 +0500 Subject: [PATCH 1/2] mobile: fix publish note with password not working --- apps/mobile/app/components/sheets/publish-note/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/app/components/sheets/publish-note/index.js b/apps/mobile/app/components/sheets/publish-note/index.js index 9320033d7..4756cc9d7 100644 --- a/apps/mobile/app/components/sheets/publish-note/index.js +++ b/apps/mobile/app/components/sheets/publish-note/index.js @@ -60,7 +60,7 @@ const PublishNoteSheet = ({ note: item, update }) => { if (isLocked && !passwordValue) return; await db.monographs.publish(note.id, { selfDestruct: selfDestruct, - password: isLocked && passwordValue + password: isLocked && passwordValue.current }); setNote(db.notes.note(note.id)?.data); Navigation.queueRoutesForUpdate( From 7a61e3558efd34dd7405e31061d48089d26c7472 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Thu, 23 Mar 2023 13:39:14 +0500 Subject: [PATCH 2/2] mobile: ui cleanup --- .../app/components/dialogs/result/index.js | 1 - .../app/components/sheet-provider/index.js | 1 - .../components/sheets/add-notebook/index.js | 1 - .../components/sheets/export-notes/index.js | 3 -- .../components/sheets/export-notes/share.js | 2 - .../app/components/sheets/github/issue.js | 1 - .../components/sheets/manage-tags/index.js | 1 - .../components/sheets/publish-note/index.js | 53 ++++++++++--------- .../app/components/sheets/rate-app/index.js | 3 -- .../components/sheets/recovery-key/index.js | 5 -- .../components/side-menu/pinned-section.js | 1 - apps/mobile/app/components/ui/input/index.tsx | 2 +- apps/mobile/app/utils/color-scheme/index.js | 2 +- 13 files changed, 30 insertions(+), 46 deletions(-) diff --git a/apps/mobile/app/components/dialogs/result/index.js b/apps/mobile/app/components/dialogs/result/index.js index a5b7c10c7..1cb0cd76e 100644 --- a/apps/mobile/app/components/dialogs/result/index.js +++ b/apps/mobile/app/components/dialogs/result/index.js @@ -135,7 +135,6 @@ const ResultDialog = () => { paddingHorizontal: 12 }} onPress={close} - height={50} fontSize={SIZE.md + 2} /> diff --git a/apps/mobile/app/components/sheet-provider/index.js b/apps/mobile/app/components/sheet-provider/index.js index 6bcfc46b2..6787d8ce8 100644 --- a/apps/mobile/app/components/sheet-provider/index.js +++ b/apps/mobile/app/components/sheet-provider/index.js @@ -212,7 +212,6 @@ const SheetProvider = ({ context = "global" }) => { title={item.actionText} icon={item.icon && item.icon} type={item.type || "accent"} - height={50} style={{ marginBottom: 10 }} diff --git a/apps/mobile/app/components/sheets/add-notebook/index.js b/apps/mobile/app/components/sheets/add-notebook/index.js index 1c8c95e01..40e69ee34 100644 --- a/apps/mobile/app/components/sheets/add-notebook/index.js +++ b/apps/mobile/app/components/sheets/add-notebook/index.js @@ -375,7 +375,6 @@ export class AddNotebookSheet extends React.Component {