From 52a7b706172c64ae490ed30e7a33f362940a8db5 Mon Sep 17 00:00:00 2001 From: Wolfie <32025746+Wolfkid200444@users.noreply.github.com> Date: Mon, 20 May 2024 08:55:22 -0400 Subject: [PATCH] Update imports to be Hardcoded --- src/plugins/holynotes/components/modals/HelpModal.tsx | 5 +++-- src/plugins/holynotes/components/modals/Notebook.tsx | 4 ++-- .../holynotes/components/modals/NotebookCreateModal.tsx | 3 ++- .../holynotes/components/modals/NotebookDeleteModal.tsx | 2 +- src/plugins/holynotes/components/modals/RenderMessage.tsx | 5 +++-- src/plugins/holynotes/utils.ts | 2 +- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/plugins/holynotes/components/modals/HelpModal.tsx b/src/plugins/holynotes/components/modals/HelpModal.tsx index f12ac5786..9899a333d 100644 --- a/src/plugins/holynotes/components/modals/HelpModal.tsx +++ b/src/plugins/holynotes/components/modals/HelpModal.tsx @@ -7,8 +7,9 @@ import { ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize } from "@utils/modal"; import { findByProps } from "@webpack"; import { Button, Forms, Text } from "@webpack/common"; -import noteHandler from "plugins/holynotes/noteHandler"; -import { downloadNotes, uploadNotes } from "plugins/holynotes/utils"; + +import noteHandler from "../../noteHandler"; +import { downloadNotes, uploadNotes } from "../../utils"; export default ({ onClose, ...modalProps }: ModalProps & { onClose: () => void; }) => { const { colorStatusGreen } = findByProps("colorStatusGreen"); diff --git a/src/plugins/holynotes/components/modals/Notebook.tsx b/src/plugins/holynotes/components/modals/Notebook.tsx index 0a6dae4ee..412063443 100644 --- a/src/plugins/holynotes/components/modals/Notebook.tsx +++ b/src/plugins/holynotes/components/modals/Notebook.tsx @@ -9,9 +9,9 @@ import { classes } from "@utils/misc"; import { ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize, openModal } from "@utils/modal"; import { findByProps } from "@webpack"; import { ContextMenuApi, Flex, FluxDispatcher, Menu, React, Text, TextInput } from "@webpack/common"; -import noteHandler from "plugins/holynotes/noteHandler"; -import { HolyNotes } from "plugins/holynotes/types"; +import noteHandler from "../../noteHandler"; +import { HolyNotes } from "../../types"; import HelpIcon from "../icons/HelpIcon"; import Errors from "./Error"; import HelpModal from "./HelpModal"; diff --git a/src/plugins/holynotes/components/modals/NotebookCreateModal.tsx b/src/plugins/holynotes/components/modals/NotebookCreateModal.tsx index 743713e57..fc1269b91 100644 --- a/src/plugins/holynotes/components/modals/NotebookCreateModal.tsx +++ b/src/plugins/holynotes/components/modals/NotebookCreateModal.tsx @@ -6,7 +6,8 @@ import { ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize } from "@utils/modal"; import { Button, React, Text, TextInput } from "@webpack/common"; -import noteHandler from "plugins/holynotes/noteHandler"; + +import noteHandler from "../../noteHandler"; export default (props: ModalProps & { onClose: () => void }) => { const [notebookName, setNotebookName] = React.useState(""); diff --git a/src/plugins/holynotes/components/modals/NotebookDeleteModal.tsx b/src/plugins/holynotes/components/modals/NotebookDeleteModal.tsx index 862795e31..2813aca7e 100644 --- a/src/plugins/holynotes/components/modals/NotebookDeleteModal.tsx +++ b/src/plugins/holynotes/components/modals/NotebookDeleteModal.tsx @@ -7,8 +7,8 @@ import ErrorBoundary from "@components/ErrorBoundary"; import { ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize } from "@utils/modal"; import { Button, React, Text } from "@webpack/common"; -import noteHandler from "plugins/holynotes/noteHandler"; +import noteHandler from "../../noteHandler"; import Error from "./Error"; import { RenderMessage } from "./RenderMessage"; diff --git a/src/plugins/holynotes/components/modals/RenderMessage.tsx b/src/plugins/holynotes/components/modals/RenderMessage.tsx index 7eec266f6..49a08c574 100644 --- a/src/plugins/holynotes/components/modals/RenderMessage.tsx +++ b/src/plugins/holynotes/components/modals/RenderMessage.tsx @@ -8,8 +8,9 @@ import { classes } from "@utils/misc"; import { ModalProps } from "@utils/modal"; import { findByCode, findByProps } from "@webpack"; import { Clipboard, ContextMenuApi, FluxDispatcher, Menu, NavigationRouter, React } from "@webpack/common"; -import noteHandler from "plugins/holynotes/noteHandler"; -import { HolyNotes } from "plugins/holynotes/types"; + +import noteHandler from "../../noteHandler"; +import { HolyNotes } from "../../types"; export const RenderMessage = ({ diff --git a/src/plugins/holynotes/utils.ts b/src/plugins/holynotes/utils.ts index 1f8686fc3..e7dffc7ea 100644 --- a/src/plugins/holynotes/utils.ts +++ b/src/plugins/holynotes/utils.ts @@ -6,10 +6,10 @@ import { createStore } from "@api/DataStore"; import { DataStore } from "@api/index"; +import { Toasts } from "@webpack/common"; import noteHandler, { noteHandlerCache } from "./noteHandler"; import { HolyNotes } from "./types"; -import { Toasts } from "@webpack/common"; export const HolyNoteStore = createStore("HolyNoteData", "HolyNoteStore");