diff --git a/projects/js-packages/ai-client/src/logo-generator/components/logo-presenter.tsx b/projects/js-packages/ai-client/src/logo-generator/components/logo-presenter.tsx index 3898f8d0691a7..c6882f863f0b4 100644 --- a/projects/js-packages/ai-client/src/logo-generator/components/logo-presenter.tsx +++ b/projects/js-packages/ai-client/src/logo-generator/components/logo-presenter.tsx @@ -9,7 +9,7 @@ import debugFactory from 'debug'; /** * Internal dependencies */ -import AiFeedbackThumbs from '../../../../../plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-feedback'; +import { default as AiFeedbackThumbs } from '../../../../../plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-feedback/index.js'; import CheckIcon from '../assets/icons/check.js'; import LogoIcon from '../assets/icons/logo.js'; import MediaIcon from '../assets/icons/media.js'; @@ -153,7 +153,10 @@ const LogoEmpty: React.FC = () => { ); }; -const RateLogo: React.FC = ( { disabled, ratedItem } ) => { +const RateLogo: React.FC< { disabled: boolean; ratedItem: string } > = ( { + disabled, + ratedItem, +} ) => { return ( <> diff --git a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-feedback/index.tsx b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-feedback/index.tsx index fb99d2cb0fd0d..de14619922043 100644 --- a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-feedback/index.tsx +++ b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-feedback/index.tsx @@ -11,8 +11,13 @@ import './style.scss'; export default function AiFeedbackThumbs( { disabled = false, iconSize = 24, - ratedItem, - feature, + ratedItem = '', + feature = '', +}: { + disabled: boolean; + iconSize?: number; + ratedItem: string; + feature: string; } ) { const [ itemsRated, setItemsRated ] = useState( {} ); const { tracks } = useAnalytics();