-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modal to show username/email advice before sending users to Wikipedia (…
- Loading branch information
1 parent
3739b5c
commit f090200
Showing
6 changed files
with
116 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import React from 'react'; | ||
import NewAccountButton from './new_account_button'; | ||
import PropTypes from 'prop-types'; | ||
|
||
const AdviceModal = ({ setModalShown, course, passcode, user }) => { | ||
return ( | ||
<div className="wizard active undefined"> | ||
<div className="container"> | ||
<div className="wizard__panel active "> | ||
<div className="wizard_pop_header"> | ||
<h3 className="heading-advice" > | ||
{I18n.t('application.sign_up_extended')} | ||
</h3> | ||
<a | ||
className="close-icon-advice icon-close" | ||
onClick={() => setModalShown(false)} | ||
/> | ||
</div> | ||
<div className="pop_body"> | ||
<h4 className="subheading-advice" > | ||
{I18n.t( | ||
'home.registration_advice.username_rules.heading' | ||
)} | ||
</h4> | ||
<ul className="list-advice"> | ||
<li> | ||
{I18n.t( | ||
'home.registration_advice.username_rules.avoid_offensive_usernames' | ||
)} | ||
</li> | ||
<li> | ||
{I18n.t( | ||
'home.registration_advice.username_rules.represent_individual' | ||
)} | ||
</li> | ||
</ul> | ||
<h4 className="subheading-advice" > | ||
{I18n.t('home.registration_advice.additional_advice.heading')} | ||
</h4> | ||
<p className="list-advice2" > | ||
{I18n.t( | ||
'home.registration_advice.additional_advice.anonymous_username_recommendation' | ||
)} | ||
</p> | ||
<div> | ||
<NewAccountButton | ||
course={course} | ||
passcode={passcode} | ||
currentUser={user} | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
AdviceModal.propTypes = { | ||
user: PropTypes.object, | ||
course: PropTypes.object, | ||
passcode: PropTypes.string, | ||
setModalShown: PropTypes.func, | ||
}; | ||
|
||
export default AdviceModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -285,4 +285,4 @@ body.home | |
|
||
+below(desktop) | ||
margin 15px 15px 0 15px | ||
max-width 30% | ||
max-width 30% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters