Fix Themes Tab

This commit is contained in:
Vendicated 2023-04-04 22:24:16 +02:00
parent 8ad710abca
commit d8a5e43034
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
2 changed files with 4 additions and 2 deletions

View file

@ -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}

View file

@ -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;