mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
mobile: fix tablet bugs
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
@@ -185,6 +185,7 @@ export const MoveNotes = (props: NavigationProps<"MoveNotes">) => {
|
||||
{selectionCount ? (
|
||||
<FloatingButton
|
||||
icon="check"
|
||||
alwaysVisible
|
||||
onPress={async () => {
|
||||
await db.notes?.addToNotebook(
|
||||
currentNotebook.id,
|
||||
|
||||
Reference in New Issue
Block a user