-
Notifications
You must be signed in to change notification settings - Fork 106
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(Bonus Pagamenti Digitali): [#175579023] FeaturedCards carousel in wallet home screen #2398
Conversation
Affected stories
|
const FeaturedCard: React.FunctionComponent<Props> = (props: Props) => ( | ||
<TouchableDefaultOpacity style={styles.container} onPress={props.onPress}> | ||
<View style={styles.row}> | ||
{fromNullable(props.image).fold( |
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.
{fromNullable(props.image).fold( | |
{maybeNotNullyString(props.image).fold( |
This could be safer: it checks that string is not null and empty. We could have some troubles when props are {image:""}
/> | ||
); | ||
case ID_BPD_TYPE: | ||
return getValue(props.bpdActiveBonus) ? 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.
return getValue(props.bpdActiveBonus) ? null : ( | |
return getValue(props.bpdActiveBonus) === false && ( |
Maybe this could be a refactoring
Codecov Report
@@ Coverage Diff @@
## master #2398 +/- ##
========================================
Coverage 50.08% 50.09%
========================================
Files 656 658 +2
Lines 18499 18580 +81
Branches 3611 3334 -277
========================================
+ Hits 9265 9307 +42
- Misses 9186 9225 +39
Partials 48 48
Continue to review full report at Codecov.
|
Short description
This PR implements the featured cards carousel on wallet home screen.