diff --git a/apps/mobile/app/components/attachments/actions.tsx b/apps/mobile/app/components/attachments/actions.tsx index 36f61b85a..940b61b2b 100644 --- a/apps/mobile/app/components/attachments/actions.tsx +++ b/apps/mobile/app/components/attachments/actions.tsx @@ -114,7 +114,7 @@ const Actions = ({ setLoading({ name: "Run file check" }); - let res = await filesystem.checkAttachment(attachment.hash); + const res = await filesystem.checkAttachment(attachment.hash); if (res.failed) { db.attachments.markAsFailed(attachment.id, res.failed); setFailed(res.failed); diff --git a/apps/mobile/app/components/dialogs/color-picker/index.tsx b/apps/mobile/app/components/dialogs/color-picker/index.tsx index ef63cb1e2..91dcfe7f9 100644 --- a/apps/mobile/app/components/dialogs/color-picker/index.tsx +++ b/apps/mobile/app/components/dialogs/color-picker/index.tsx @@ -32,7 +32,7 @@ import DialogContainer from "../../dialog/dialog-container"; import { Toast } from "../../toast"; import { Button } from "../../ui/button"; import Input from "../../ui/input"; -import { PressableButton } from "../../ui/pressable"; +import { Pressable } from "../../ui/pressable"; const HEX_COLOR_REGEX_ALPHA = /^#(?:(?:[\da-fA-F]{3}){1,2}|(?:[\da-fA-F]{4}){1,2})$/; @@ -128,10 +128,10 @@ const ColorPicker = ({ }} defaultValue={colorRef.current} /> - diff --git a/apps/mobile/app/components/dialogs/vault/index.js b/apps/mobile/app/components/dialogs/vault/index.js index 3fed83284..5e00a5f32 100644 --- a/apps/mobile/app/components/dialogs/vault/index.js +++ b/apps/mobile/app/components/dialogs/vault/index.js @@ -53,7 +53,6 @@ import { Button } from "../../ui/button"; import Input from "../../ui/input"; import Seperator from "../../ui/seperator"; import Paragraph from "../../ui/typography/paragraph"; -import { getColorLinearShade } from "../../../utils/colors"; export class VaultDialog extends Component { constructor(props) { diff --git a/apps/mobile/app/components/note-history/index.tsx b/apps/mobile/app/components/note-history/index.tsx index 4f75346c1..4fffe7c05 100644 --- a/apps/mobile/app/components/note-history/index.tsx +++ b/apps/mobile/app/components/note-history/index.tsx @@ -33,7 +33,7 @@ import { openLinkInBrowser } from "../../utils/functions"; import { SIZE } from "../../utils/size"; import DialogHeader from "../dialog/dialog-header"; import SheetProvider from "../sheet-provider"; -import { PressableButton } from "../ui/pressable"; +import { Pressable } from "../ui/pressable"; import Seperator from "../ui/seperator"; import Paragraph from "../ui/typography/paragraph"; import NotePreview from "./preview"; @@ -78,13 +78,13 @@ const HistoryItem = ({ }, []); return ( - { if (!item) return; preview(item); }} - customStyle={{ + style={{ justifyContent: "space-between", alignItems: "center", paddingHorizontal: 12, @@ -101,7 +101,7 @@ const HistoryItem = ({ )} - + ); }; diff --git a/apps/mobile/app/components/properties/index.js b/apps/mobile/app/components/properties/index.js index b91034a8a..c799e4145 100644 --- a/apps/mobile/app/components/properties/index.js +++ b/apps/mobile/app/components/properties/index.js @@ -26,7 +26,8 @@ import { presentSheet } from "../../services/event-manager"; import { ColorValues } from "../../utils/colors"; import { SIZE } from "../../utils/size"; import SheetProvider from "../sheet-provider"; -import { PressableButton } from "../ui/pressable"; +import { useSideBarDraggingStore } from "../side-menu/dragging-store"; +import { Pressable } from "../ui/pressable"; import { ReminderTime } from "../ui/reminder-time"; import Heading from "../ui/typography/heading"; import Paragraph from "../ui/typography/paragraph"; @@ -35,7 +36,6 @@ import { Items } from "./items"; import Notebooks from "./notebooks"; import { Synced } from "./synced"; import { TagStrip, Tags } from "./tags"; -import { useSideBarDraggingStore } from "../side-menu/dragging-store"; const Line = ({ top = 6, bottom = 6 }) => { const { colors } = useThemeColors(); @@ -92,7 +92,7 @@ export const Properties = ({ close = () => {}, item, buttons = [] }) => { }} > {item.type === "color" ? ( - . */ +import { VirtualizedGrouping } from "@notesnook/core"; +import { Item, ItemReference } from "@notesnook/core/dist/types"; import { useThemeColors } from "@notesnook/theme"; import React, { RefObject, useEffect, useState } from "react"; import { View } from "react-native"; @@ -35,8 +37,6 @@ import SheetProvider from "../../sheet-provider"; import { Button } from "../../ui/button"; import { PressableProps } from "../../ui/pressable"; import Paragraph from "../../ui/typography/paragraph"; -import { Item, ItemReference, ItemType } from "@notesnook/core/dist/types"; -import { VirtualizedGrouping } from "@notesnook/core"; type RelationsListProps = { actionSheetRef: RefObject; diff --git a/apps/mobile/app/components/side-menu/index.tsx b/apps/mobile/app/components/side-menu/index.tsx index 229a897ca..cbe9508c3 100644 --- a/apps/mobile/app/components/side-menu/index.tsx +++ b/apps/mobile/app/components/side-menu/index.tsx @@ -182,7 +182,7 @@ export const SideMenu = React.memo( }} >