We wanted to add a text after ADD TO WISHLIST icon in PDP Page, so We added in
src/components/wishlist/AddtoListbutton/addtoListButton.ce.js
return (
<button ref={buttonRef} className={buttonClass} {...ariaButtonProps}>
{props.icon} ADD TO WISHLIST
</button>
);
Issue : The Text is displaying in every part of the website. but we need text only in PDP Page
Here is PDP Page full code : https://pastebin.com/bjwKkR7k and Wishlistbutton full code : https://pastebin.com/iSYd2ux3
Requirement
Is there any condition we can keep so that the “ADD TO WISHLIST” text should display only in PDP Page ?