1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

Fix bug with getLangText

This commit is contained in:
vrde 2015-07-15 00:37:45 +02:00
parent e65f052ffe
commit 45a49cafe9
2 changed files with 8 additions and 8 deletions

View File

@ -32,8 +32,8 @@ let LoginForm = React.createClass({
getDefaultProps() { getDefaultProps() {
return { return {
headerMessage: 'Enter ascribe', headerMessage: getLangText('Enter ascribe'),
submitMessage: 'Log in', submitMessage: getLangText('Log in'),
redirectOnLoggedIn: true, redirectOnLoggedIn: true,
redirectOnLoginSuccess: true redirectOnLoginSuccess: true
}; };
@ -95,7 +95,7 @@ let LoginForm = React.createClass({
<button <button
type="submit" type="submit"
className="btn ascribe-btn ascribe-btn-login"> className="btn ascribe-btn ascribe-btn-login">
{getLangText(this.props.submitMessage)} {this.props.submitMessage}
</button>} </button>}
spinner={ spinner={
<span className="btn ascribe-btn ascribe-btn-login ascribe-btn-login-spinner"> <span className="btn ascribe-btn ascribe-btn-login ascribe-btn-login-spinner">
@ -103,7 +103,7 @@ let LoginForm = React.createClass({
</span> </span>
}> }>
<FormPropertyHeader> <FormPropertyHeader>
<h3>{getLangText(this.props.headerMessage)}</h3> <h3>{this.props.headerMessage}</h3>
</FormPropertyHeader> </FormPropertyHeader>
<Property <Property
name='email' name='email'

View File

@ -31,8 +31,8 @@ let SignupForm = React.createClass({
getDefaultProps() { getDefaultProps() {
return { return {
headerMessage: 'Welcome to ascribe', headerMessage: getLangText('Welcome to ascribe'),
submitMessage: 'Sign up' submitMessage: getLangText('Sign up')
}; };
}, },
@ -82,7 +82,7 @@ let SignupForm = React.createClass({
getFormData={this.getFormData} getFormData={this.getFormData}
buttons={ buttons={
<button type="submit" className="btn ascribe-btn ascribe-btn-login"> <button type="submit" className="btn ascribe-btn ascribe-btn-login">
{getLangText(this.props.submitMessage)} {this.props.submitMessage}
</button>} </button>}
spinner={ spinner={
<span className="btn ascribe-btn ascribe-btn-login ascribe-btn-login-spinner"> <span className="btn ascribe-btn ascribe-btn-login ascribe-btn-login-spinner">
@ -90,7 +90,7 @@ let SignupForm = React.createClass({
</span> </span>
}> }>
<FormPropertyHeader> <FormPropertyHeader>
<h3>{getLangText(this.props.headerMessage)}</h3> <h3>{this.props.headerMessage}</h3>
</FormPropertyHeader> </FormPropertyHeader>
<Property <Property
name='email' name='email'