fix ts error in build

This commit is contained in:
Jennifer Player 2023-09-18 10:31:50 -04:00
parent dc2e1a42bc
commit c46d9b8768

View File

@ -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();