This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
assets/js/blocks/reviews/reviews-by-product Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 33 */
44import { __ , sprintf } from '@wordpress/i18n' ;
55import { Placeholder , Spinner } from '@wordpress/components' ;
6- import ErrorPlaceholder , {
7- ErrorObject ,
8- } from '@woocommerce/editor-components/error-placeholder' ;
6+ import ErrorPlaceholder from '@woocommerce/editor-components/error-placeholder' ;
97import { Icon , commentContent } from '@wordpress/icons' ;
108import { withProduct } from '@woocommerce/block-hocs' ;
119import { decodeEntities } from '@wordpress/html-entities' ;
@@ -23,8 +21,8 @@ const NoReviewsPlaceholder = ( {
2321 const renderApiError = ( ) => (
2422 < ErrorPlaceholder
2523 className = "wc-block-featured-product-error"
26- error = { error as ErrorObject }
27- isLoading = { isLoading as boolean }
24+ error = { error }
25+ isLoading = { isLoading }
2826 onRetry = { getProduct }
2927 />
3028 ) ;
Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ export interface SearchListItemProps extends renderItemArgs {
2626}
2727
2828export interface NoReviewsPlaceholderProps {
29- error ?: string | ErrorObject ;
29+ error : ErrorObject ;
3030 getProduct : ( ) => void ;
31- isLoading ? : boolean ;
31+ isLoading : boolean ;
3232 product ?: {
3333 name : string ;
3434 } ;
You can’t perform that action at this time.
0 commit comments