From ecf3231b88b55b43bf2b4373f05461996bdbf4ee Mon Sep 17 00:00:00 2001 From: Inbestigator Date: Thu, 23 Jan 2025 11:48:21 -0800 Subject: [PATCH] Use classNameFactory and modernised patches --- src/plugins/betterBanReasons/index.tsx | 34 ++++++++++++++------------ 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/plugins/betterBanReasons/index.tsx b/src/plugins/betterBanReasons/index.tsx index 722184c4a..6496110bd 100644 --- a/src/plugins/betterBanReasons/index.tsx +++ b/src/plugins/betterBanReasons/index.tsx @@ -7,9 +7,14 @@ import "./styles.css"; import { definePluginSettings } from "@api/Settings"; +import { classNameFactory } from "@api/Styles"; import { Devs } from "@utils/constants"; +import { getIntlMessage } from "@utils/discord"; +import { runtimeHashMessageKey } from "@utils/intlHash"; import definePlugin, { OptionType } from "@utils/types"; -import { Button, Forms, i18n, TextInput } from "@webpack/common"; +import { Button, Forms, TextInput } from "@webpack/common"; + +const cl = classNameFactory("vc-bbr-"); function ReasonsComponent() { const { reasons } = settings.use(["reasons"]); @@ -18,11 +23,11 @@ function ReasonsComponent() { {reasons.map((reason: string, index: number) => (
{ reasons[index] = v; @@ -32,7 +37,7 @@ function ReasonsComponent() { />