fix: update opt in text (#457)

update opt in checkbox text on register page.
VAN-740
This commit is contained in:
Mubbshar Anwar
2021-10-27 18:09:30 +05:00
committed by GitHub
parent 4d9b508e19
commit 82d339c91b
3 changed files with 5 additions and 5 deletions

View File

@@ -841,8 +841,8 @@ select.form-control {
.opt-checkbox {
.pgn__form-label {
font-size: 0.875rem;
line-height: 1.5rem;
font-size: 0.75rem;
line-height: 1.25rem;
}
margin-top: 1rem;
margin-left: 3px;

View File

@@ -667,7 +667,7 @@ class RegistrationPage extends React.Component {
checked={this.state.marketingOptIn}
onChange={(e) => this.setState({ marketingOptIn: e.target.checked })}
>
{intl.formatMessage(messages['registration.opt.in.label'])}
{intl.formatMessage(messages['registration.opt.in.label'], { siteName: getConfig().SITE_NAME })}
</Form.Checkbox>
)}
<div id="honor-code" className="micro text-muted mt-4">

View File

@@ -34,8 +34,8 @@ const messages = defineMessages({
},
'registration.opt.in.label': {
id: 'registration.opt.in.label',
defaultMessage: 'Receive marketing emails',
description: 'You will be receive marketing emails by checking it',
defaultMessage: 'By creating an account, I agree that {siteName} may send me marketing messages.',
description: 'Text for opt in option on register page.',
},
// Help text
'help.text.name': {