From 1cd0a69503b762cc492290ff196e62c75431cbd1 Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Thu, 9 Jan 2025 12:34:44 +0530 Subject: [PATCH] fix: Feedzy Loop button not working with Groups --- js/FeedzyLoop/components/FeedControl.js | 10 +++++-- js/FeedzyLoop/placeholder.js | 5 +--- tests/e2e/specs/loop.spec.js | 37 +++++++++++++++++++++++-- 3 files changed, 44 insertions(+), 8 deletions(-) diff --git a/js/FeedzyLoop/components/FeedControl.js b/js/FeedzyLoop/components/FeedControl.js index 05a5b412..bfdd5049 100644 --- a/js/FeedzyLoop/components/FeedControl.js +++ b/js/FeedzyLoop/components/FeedControl.js @@ -1,6 +1,8 @@ /** * WordPress dependencies. */ +import { __ } from '@wordpress/i18n'; + import { useState, useEffect, useRef } from '@wordpress/element'; const FeedControl = ({ value, options, onChange }) => { @@ -80,7 +82,10 @@ const FeedControl = ({ value, options, onChange }) => { value={selectedOption ? selectedOption.label : inputValue} onChange={handleInputChange} onBlur={handleInputBlur} - placeholder="Enter URLs or select a category" + placeholder={__( + 'Enter URLs or select a Feed Group', + 'feedzy-rss-feeds' + )} disabled={selectedOption !== null} className="fz-input-field" /> @@ -89,7 +94,7 @@ const FeedControl = ({ value, options, onChange }) => {