diff --git a/invokeai/frontend/web/index.d.ts b/invokeai/frontend/web/index.d.ts index a3ab75d17c..2753fc2fb6 100644 --- a/invokeai/frontend/web/index.d.ts +++ b/invokeai/frontend/web/index.d.ts @@ -45,23 +45,23 @@ declare global { } declare module '@invoke-ai/invoke-ai-ui' { - declare class ThemeChanger extends React.Component { + declare class ThemeChanger extends React.FunctionComponent { public constructor(props: ThemeChangerProps); } - declare class InvokeAiLogoComponent extends React.Component { + declare class InvokeAiLogoComponent extends React.FunctionComponent { public constructor(props: InvokeAILogoComponentProps); } - declare class IAIPopover extends React.Component { + declare class IAIPopover extends React.FunctionComponent { public constructor(props: IAIPopoverProps); } - declare class IAIIconButton extends React.Component { + declare class IAIIconButton extends React.FunctionComponent { public constructor(props: IAIIconButtonProps); } - declare class SettingsModal extends React.Component { + declare class SettingsModal extends React.FunctionComponent { public constructor(props: SettingsModalProps); } }