dadoagency / contentful-gatsby-components

0 stars 0 forks source link

RichText generating ProductLinkButtons and manually calling the ProductLinkButton component #9

Open martink-rsa opened 4 years ago

martink-rsa commented 4 years ago

Issue:

RichText generating ProductLinkButtons and manually calling the ProductLinkButton component

Details:

When ProductLinkButtons are in the main body of Advertorial Type 1, ProductLinkButtons are added via richText.js where processing happens a ProductLinkButton.

When ProductLinkButtons are used in a Testimonial section of Advertorial Type 1, ProductLinkButtons are manually added instead of through documentToReactComponents and richText.js, which bypasses all of the code used to process a ProductLinkButton.

Solution

These should be brought together by either a function or have the Testimonial section send the buttons to richText.js with documentToReactComponents.