diff options
Diffstat (limited to 'src/plugins/pronoundb')
-rw-r--r-- | src/plugins/pronoundb/components/PronounsChatComponent.tsx | 7 | ||||
-rw-r--r-- | src/plugins/pronoundb/components/PronounsProfileWrapper.tsx | 4 | ||||
-rw-r--r-- | src/plugins/pronoundb/utils.ts | 3 |
3 files changed, 8 insertions, 6 deletions
diff --git a/src/plugins/pronoundb/components/PronounsChatComponent.tsx b/src/plugins/pronoundb/components/PronounsChatComponent.tsx index c0b5a90..ec4de98 100644 --- a/src/plugins/pronoundb/components/PronounsChatComponent.tsx +++ b/src/plugins/pronoundb/components/PronounsChatComponent.tsx @@ -17,12 +17,13 @@ */ import { Message } from "discord-types/general"; -import { fetchPronouns, formatPronouns } from "../utils"; + import { classes, lazyWebpack, useAwaiter } from "../../../utils/misc"; -import { PronounMapping } from "../types"; +import { Settings } from "../../../Vencord"; import { filters } from "../../../webpack"; import { UserStore } from "../../../webpack/common"; -import { Settings } from "../../../Vencord"; +import { PronounMapping } from "../types"; +import { fetchPronouns, formatPronouns } from "../utils"; const styles: Record<string, string> = lazyWebpack(filters.byProps(["timestampInline"])); diff --git a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx index af2f84b..930d5a7 100644 --- a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx +++ b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx @@ -16,10 +16,10 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { UserStore } from "../../../webpack/common"; +import { classes,useAwaiter } from "../../../utils"; import { Settings } from "../../../Vencord"; +import { UserStore } from "../../../webpack/common"; import { PronounMapping, UserProfileProps } from "../types"; -import { useAwaiter, classes } from "../../../utils"; import { fetchPronouns, formatPronouns } from "../utils"; export default function PronounsProfileWrapper(props: UserProfileProps, pronounsComponent: JSX.Element) { diff --git a/src/plugins/pronoundb/utils.ts b/src/plugins/pronoundb/utils.ts index a9828d2..24bc3e2 100644 --- a/src/plugins/pronoundb/utils.ts +++ b/src/plugins/pronoundb/utils.ts @@ -17,9 +17,10 @@ */ import gitHash from "git-hash"; -import { PronounsFormat } from "."; + import { debounce } from "../../utils"; import { Settings } from "../../Vencord"; +import { PronounsFormat } from "."; import { PronounCode, PronounMapping, PronounsResponse } from "./types"; // A map of cached pronouns so the same request isn't sent twice |