Skip to content

Commit

Permalink
Attemp #1 to fix some build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mwatson committed Dec 13, 2024
1 parent 7bc3a88 commit dbc595b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 (
<>
<AiFeedbackThumbs disabled={ disabled } ratedItem={ ratedItem } feature="logo-generator" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dbc595b

Please sign in to comment.