diff --git a/invokeai/frontend/web/src/common/components/IAIInformationalPopover.tsx b/invokeai/frontend/web/src/common/components/IAIInformationalPopover.tsx index 2c5d1b7599..1543d85f2c 100644 --- a/invokeai/frontend/web/src/common/components/IAIInformationalPopover.tsx +++ b/invokeai/frontend/web/src/common/components/IAIInformationalPopover.tsx @@ -12,18 +12,17 @@ import { Text, Image, } from '@chakra-ui/react'; -import { ReactNode } from 'react'; import { useAppSelector } from '../../app/store/storeHooks'; import { systemSelector } from '../../features/system/store/systemSelectors'; import { useTranslation } from 'react-i18next'; interface Props extends PopoverProps { details: string; - children: ReactNode; + children: JSX.Element; image?: string; buttonLabel?: string; buttonHref?: string; - placement?: string; + placement?: PopoverProps['placement']; } function IAIInformationalPopover({ @@ -33,7 +32,7 @@ function IAIInformationalPopover({ buttonHref, children, placement, -}: Props) { +}: Props): JSX.Element { const { shouldDisableInformationalPopovers } = useAppSelector(systemSelector); const { t } = useTranslation();