refactor Settings UI (#3545)
Much improved file structure and cleaner code. Also gets rid of temporary settings & saving and instead applies all changes immediately. Besides that, this change only changes code and doesn't change the ui
This commit is contained in:
parent
a33e81d1cb
commit
3f51ee1b2a
94 changed files with 2120 additions and 2002 deletions
2
packages/discord-types/src/components.d.ts
vendored
2
packages/discord-types/src/components.d.ts
vendored
|
|
@ -244,8 +244,10 @@ export type TextInput = ComponentType<PropsWithChildren<{
|
|||
Sizes: Record<"DEFAULT" | "MINI", string>;
|
||||
};
|
||||
|
||||
// FIXME: this is wrong, it's not actually just HTMLTextAreaElement
|
||||
export type TextArea = ComponentType<Omit<HTMLProps<HTMLTextAreaElement>, "onChange"> & {
|
||||
onChange(v: string): void;
|
||||
inputRef?: Ref<HTMLTextAreaElement>;
|
||||
}>;
|
||||
|
||||
interface SelectOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue