mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix ts error in build
This commit is contained in:
parent
dc2e1a42bc
commit
c46d9b8768
@ -12,18 +12,17 @@ import {
|
|||||||
Text,
|
Text,
|
||||||
Image,
|
Image,
|
||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import { ReactNode } from 'react';
|
|
||||||
import { useAppSelector } from '../../app/store/storeHooks';
|
import { useAppSelector } from '../../app/store/storeHooks';
|
||||||
import { systemSelector } from '../../features/system/store/systemSelectors';
|
import { systemSelector } from '../../features/system/store/systemSelectors';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
interface Props extends PopoverProps {
|
interface Props extends PopoverProps {
|
||||||
details: string;
|
details: string;
|
||||||
children: ReactNode;
|
children: JSX.Element;
|
||||||
image?: string;
|
image?: string;
|
||||||
buttonLabel?: string;
|
buttonLabel?: string;
|
||||||
buttonHref?: string;
|
buttonHref?: string;
|
||||||
placement?: string;
|
placement?: PopoverProps['placement'];
|
||||||
}
|
}
|
||||||
|
|
||||||
function IAIInformationalPopover({
|
function IAIInformationalPopover({
|
||||||
@ -33,7 +32,7 @@ function IAIInformationalPopover({
|
|||||||
buttonHref,
|
buttonHref,
|
||||||
children,
|
children,
|
||||||
placement,
|
placement,
|
||||||
}: Props) {
|
}: Props): JSX.Element {
|
||||||
const { shouldDisableInformationalPopovers } = useAppSelector(systemSelector);
|
const { shouldDisableInformationalPopovers } = useAppSelector(systemSelector);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user