Skip to content

fix(recommend): ignore items type in components#37

Merged
francoischalifour merged 2 commits intonextfrom
fix/items-typing
Jun 17, 2021
Merged

fix(recommend): ignore items type in components#37
francoischalifour merged 2 commits intonextfrom
fix/items-typing

Conversation

@francoischalifour
Copy link
Copy Markdown
Contributor

This fixes a typing issue raised by the Dashboard team where items was marked as required in our FBT and RP components.

We forgot to omit the items prop which is only used by the VDOM components.

I took the opportunity to fix other typing inconsistencies where we expected the VDOM component to receive GetRelatedProductsProps, whereas it's only expect at the renderer packages' level (React and JS).

Comment thread packages/recommend-react/src/RelatedProducts.tsx Outdated
Copy link
Copy Markdown
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call!

@francoischalifour francoischalifour merged commit 63121fa into next Jun 17, 2021
@francoischalifour francoischalifour deleted the fix/items-typing branch June 17, 2021 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants