diff --git a/src/renderer/modules/common/guilds.ts b/src/renderer/modules/common/guilds.ts index 0c0e243e9..be6844e41 100644 --- a/src/renderer/modules/common/guilds.ts +++ b/src/renderer/modules/common/guilds.ts @@ -18,7 +18,6 @@ export type Guilds = (Store & Record) & { getLastSelectedGuildId: () => string | undefined; getLastSelectedTimestamp: (guildId: string) => number; getState: () => State; - getTabsV2SelectedGuildId: () => string | undefined; isLoaded: () => boolean; }; diff --git a/src/renderer/modules/components/CheckboxItem.tsx b/src/renderer/modules/components/CheckboxItem.tsx index 850d9ff04..3e3296f9b 100644 --- a/src/renderer/modules/components/CheckboxItem.tsx +++ b/src/renderer/modules/components/CheckboxItem.tsx @@ -21,7 +21,7 @@ interface CheckboxProps { onChange?: (e: React.ChangeEvent, state: boolean) => void; } -export type CheckboxType = React.ComponentType & { +export type CheckboxType = React.FC> & { defaultProps: CheckboxProps; Types: Record<"DEFAULT" | "INVERTED" | "GHOST" | "ROW", string>; Aligns: Record<"TOP" | "CENTER", string>; diff --git a/src/renderer/modules/components/SwitchItem.tsx b/src/renderer/modules/components/SwitchItem.tsx index 7c476b95c..5863784de 100644 --- a/src/renderer/modules/components/SwitchItem.tsx +++ b/src/renderer/modules/components/SwitchItem.tsx @@ -21,12 +21,11 @@ export type SwitchItemType = ReactComponent<{ }>; const switchModStr = "xMinYMid meet"; -const switchRgx = /{className:\w+\(\)\(\w+,\w+\.className\)}/; const switchItemStr = ").dividerDefault"; export const Switch = (await waitForModule(filters.bySource(switchModStr)).then((mod) => { if (typeof mod === "function") return mod; - return getFunctionBySource(mod as ObjectExports, switchRgx); + return getFunctionBySource(mod as ObjectExports, switchModStr); })) as SwitchType; export const SwitchItem = (await waitForModule(filters.bySource(switchItemStr)).then((mod) => {