From 911fd5ac0f0cd51581b6e78039bc58ac3b45a6e4 Mon Sep 17 00:00:00 2001 From: Fede <38290480+FedeIlLeone@users.noreply.github.com> Date: Sat, 8 Apr 2023 09:55:28 +0200 Subject: [PATCH] fix(types): checkbox children and remove getTabsV2SelectedGuildId --- src/renderer/modules/common/guilds.ts | 1 - src/renderer/modules/components/CheckboxItem.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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>;