-
Notifications
You must be signed in to change notification settings - Fork 879
feat: [UEPR-190] Connecting ToU modal UI to backend #9292
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: ux-integration
Are you sure you want to change the base?
feat: [UEPR-190] Connecting ToU modal UI to backend #9292
Conversation
return (<TermsOfUseModalUnder16 | ||
isOpen={isModalVisible} | ||
onClose={handleClose} | ||
onAccept={handleAccept} |
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.
Why are we not passing showError
to TermsOfUseModalUnder16
?
There is an empty file |
@@ -19,16 +20,33 @@ export const TermsOfUseLink = chunks => ( | |||
</a> | |||
); | |||
|
|||
|
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.
nitpick: remove extra line
@@ -47,13 +65,14 @@ const TermsOfUseModal = ({ | |||
if (!usesParentEmail || isOver16){ | |||
return (<TermsOfUseModalOver16 | |||
isOpen={isModalVisible} | |||
onClose={handleClose} | |||
onAccept={handleAccept} | |||
showErrorMessage={showError} | |||
/>); | |||
} | |||
|
|||
return (<TermsOfUseModalUnder16 |
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.
Since we're showing the same error message in both cases, what do you think about showing it here, in the parent component?
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.
It needs to be in the modal itself. I can try changing it so that we have a single Modal element and only modify the content based on the age group. Initially, I took this approach because the modals behaved differently (e.g., showing the close button, being dismissible, etc.), but since we no longer have such functionality, we might as well use a single modal component and only change its contents.
src/lib/session.js
Outdated
@@ -61,22 +61,7 @@ module.exports.requestSessionWithRetry = (resolve, reject, retriesLeft, totalDel | |||
); | |||
} | |||
console.log('session body:', body); |
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.
console.log
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.
Empty file
Ticket:
UEPR-190
Error UI:
