-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support prop list in all content usecases #828
feat: support prop list in all content usecases #828
Conversation
Preview is ready. |
338f02b
to
cc0edff
Compare
@@ -32,6 +32,12 @@ const DefaultTemplate: StoryFn<ExtendedFeaturesBlockModel> = (args) => ( | |||
const extendedFeaturesItems = (items: ExtendedFeaturesItem[]) => { | |||
return items.map((item) => ({ | |||
...item, | |||
list: | |||
item.list && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
item.list?.map
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -21,31 +21,29 @@ export const TabsTextContent = ({ | |||
centered, | |||
contentSize = 's', | |||
showMedia, | |||
data, | |||
data: {media, title, text, additionalInfo, link, links, buttons, list}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but data could be undefined, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data
is required prop, inside data we have partial fields like media
and we check his existence.
Playwright Test Component is ready. |
close #818