-
Couldn't load subscription status.
- Fork 39
[MOB-12270] new-embedded-view-component #748
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
base: loren/embedded/MOB-12268-android-add-click-handling-and-track
Are you sure you want to change the base?
[MOB-12270] new-embedded-view-component #748
Conversation
|
Diff Coverage: The code coverage on the diff in this pull request is 17.4%. Total Coverage: This PR will decrease coverage by 1.16%. File Coverage Changes
🛟 Help
This is from Qlty Cloud, the successor to Code Climate Quality. Learn more. |
5 new issues
This is from Qlty Cloud, the successor to Code Climate Quality. Learn more. |
| export const IterableEmbeddedView = ({ | ||
| viewType, | ||
| ...props | ||
| }: IterableEmbeddedViewProps) => { | ||
| const Cmp = useMemo(() => { | ||
| switch (viewType) { | ||
| case IterableEmbeddedViewType.Card: | ||
| return IterableEmbeddedCard; | ||
| case IterableEmbeddedViewType.Notification: | ||
| return IterableEmbeddedNotification; | ||
| case IterableEmbeddedViewType.Banner: | ||
| return IterableEmbeddedBanner; | ||
| default: | ||
| return null; | ||
| } | ||
| }, [viewType]); | ||
|
|
||
| return Cmp ? <Cmp {...props} /> : null; |
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.
🔹 JIRA Ticket(s) if any
✏️ Description
Added embedded view component