Skip to content

Commit

Permalink
fix(types): checkbox children and remove getTabsV2SelectedGuildId
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeIlLeone committed Apr 8, 2023
1 parent 348199d commit 911fd5a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/renderer/modules/common/guilds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export type Guilds = (Store & Record<string, unknown>) & {
getLastSelectedGuildId: () => string | undefined;
getLastSelectedTimestamp: (guildId: string) => number;
getState: () => State;
getTabsV2SelectedGuildId: () => string | undefined;
isLoaded: () => boolean;
};

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/modules/components/CheckboxItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface CheckboxProps {
onChange?: (e: React.ChangeEvent<HTMLInputElement>, state: boolean) => void;
}

export type CheckboxType = React.ComponentType<CheckboxProps> & {
export type CheckboxType = React.FC<React.PropsWithChildren<CheckboxProps>> & {
defaultProps: CheckboxProps;
Types: Record<"DEFAULT" | "INVERTED" | "GHOST" | "ROW", string>;
Aligns: Record<"TOP" | "CENTER", string>;
Expand Down

0 comments on commit 911fd5a

Please sign in to comment.