Skip to content

Commit

Permalink
Remove a direct reference to React that was breaking IR
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Dec 2, 2024
1 parent 1b99ca8 commit 3462f7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/instant-results/components/common/result.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* WordPress dependencies.
*/
import { React, WPElement } from '@wordpress/element';
import { Component, FunctionComponent, WPElement } from '@wordpress/element';
import { applyFilters } from '@wordpress/hooks';

/**
Expand Down Expand Up @@ -80,7 +80,7 @@ const Result = ({ averageRating = 0, date, excerpt, priceHtml, thumbnail, title,
* @filter ep.InstantResults.Result
* @since 4.4.0
*
* @param {React.Component|React.FunctionComponent} Result Result component.
* @returns {React.Component|React.FunctionComponent} Result component.
* @param {Component|FunctionComponent} Result Result component.
* @returns {Component|FunctionComponent} Result component.
*/
export default applyFilters('ep.InstantResults.Result', Result);

0 comments on commit 3462f7a

Please sign in to comment.