diff --git a/src/plugins/customFolderIcons/components.tsx b/src/plugins/customFolderIcons/components.tsx index 90f51546e..aab5ee129 100644 --- a/src/plugins/customFolderIcons/components.tsx +++ b/src/plugins/customFolderIcons/components.tsx @@ -7,9 +7,8 @@ import { closeModal, ModalContent, ModalHeader, ModalRoot, openModalLazy } from "@utils/modal"; import { Button, Menu, Slider, TextInput, useState } from "@webpack/common"; -import { folderProp } from "."; import settings, { folderIconsData } from "./settings"; -import { int2rgba, setFolderData } from "./util"; +import { folderProp, int2rgba, setFolderData } from "./util"; export function ImageModal(folderProps: folderProp) { const [data, setData] = useState(((settings.store.folderIcons ?? {}) as folderIconsData)[folderProps.folderId]?.url ?? ""); diff --git a/src/plugins/customFolderIcons/index.tsx b/src/plugins/customFolderIcons/index.tsx index 1ef6dfccb..b86ae09bf 100644 --- a/src/plugins/customFolderIcons/index.tsx +++ b/src/plugins/customFolderIcons/index.tsx @@ -9,11 +9,8 @@ import definePlugin from "@utils/types"; import { makeContextItem } from "./components"; import settings, { folderIconsData } from "./settings"; -import { int2rgba } from "./util"; -export interface folderProp { - folderId: string; - folderColor: number; -} +import { folderProp, int2rgba } from "./util"; + export default definePlugin({ settings, name: "CustomFolderIcons", @@ -46,7 +43,7 @@ export default definePlugin({ return (