diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/VencordSettings/ThemesTab.tsx | 2 | ||||
-rw-r--r-- | src/webpack/common/types/components.d.ts | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/components/VencordSettings/ThemesTab.tsx b/src/components/VencordSettings/ThemesTab.tsx index f254aff..4bd0eb8 100644 --- a/src/components/VencordSettings/ThemesTab.tsx +++ b/src/components/VencordSettings/ThemesTab.tsx @@ -117,7 +117,7 @@ export default ErrorBoundary.wrap(function () { <Forms.FormTitle tag="h5">Themes</Forms.FormTitle> <TextArea value={themeText} - onChange={e => setThemeText(e.currentTarget.value)} + onChange={setThemeText} className={`${TextAreaProps.textarea} vc-settings-theme-links`} placeholder="Theme Links" spellCheck={false} diff --git a/src/webpack/common/types/components.d.ts b/src/webpack/common/types/components.d.ts index a2e66bd..7b02ed3 100644 --- a/src/webpack/common/types/components.d.ts +++ b/src/webpack/common/types/components.d.ts @@ -186,7 +186,9 @@ export type TextInput = ComponentType<PropsWithChildren<{ Sizes: Record<"DEFAULT" | "MINI", string>; }; -export type TextArea = ComponentType<PropsWithRef<HTMLProps<HTMLTextAreaElement>>>; +export type TextArea = ComponentType<PropsWithRef<Omit<HTMLProps<HTMLTextAreaElement>, "onChange"> & { + onChange(v: string): void; +}>>; interface SelectOption { disabled?: boolean; |