Skip to content

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

mobile: fix tablet bugs

Ammar Ahmed8bc779d8820e
diff --git a/apps/mobile/app/components/sheets/github/issue.js b/apps/mobile/app/components/sheets/github/issue.js
index 7462faa3d..eaa9bc770 100644
--- a/apps/mobile/app/components/sheets/github/issue.js
+++ b/apps/mobile/app/components/sheets/github/issue.js
@@ -70,6 +70,15 @@ Pro: ${PremiumService.get()}
Logged in: ${user ? "yes" : "no"}`,
userId: user?.id
});
+ if (!issueUrl.current) {
+ setLoading(false);
+ ToastManager.show({
+ heading: "Failed to report issue on github",
+ type: "error",
+ context: "local"
+ });
+ return;
+ }
setLoading(false);
body.reset();
title.reset();
diff --git a/apps/mobile/app/screens/link-notebooks/index.tsx b/apps/mobile/app/screens/link-notebooks/index.tsx
index a02bb7c7e..ef94a195e 100644
--- a/apps/mobile/app/screens/link-notebooks/index.tsx
+++ b/apps/mobile/app/screens/link-notebooks/index.tsx
@@ -136,9 +136,6 @@ const LinkNotebooks = (props: NavigationProps<"LinkNotebooks">) => {
})();
}, [loadRootNotebooks, loading]);
- const selectedItemsList = useSelectionStore(
- (state) => state.selectedItemsList
- );
const multiSelect = useNotebookSelectionStore((state) => state.multiSelect);
const hasSelection = useNotebookSelectionStore((state) =>
@@ -285,7 +282,7 @@ const LinkNotebooks = (props: NavigationProps<"LinkNotebooks">) => {
/>
{hasSelection ? (
- <FloatingButton icon="check" onPress={() => onSave()} />
+ <FloatingButton icon="check" alwaysVisible onPress={() => onSave()} />
) : null}
</SafeAreaView>
);
diff --git a/apps/mobile/app/screens/move-notes/index.tsx b/apps/mobile/app/screens/move-notes/index.tsx
index 5dda8be84..b2b649b03 100644
--- a/apps/mobile/app/screens/move-notes/index.tsx
+++ b/apps/mobile/app/screens/move-notes/index.tsx
@@ -185,6 +185,7 @@ export const MoveNotes = (props: NavigationProps<"MoveNotes">) => {
{selectionCount ? (
<FloatingButton
icon="check"
+ alwaysVisible
onPress={async () => {
await db.notes?.addToNotebook(
currentNotebook.id,