mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-12 12:04:16 +00:00
handle onClick register
This commit is contained in:
parent
e28880974a
commit
0f33babf77
@ -103,6 +103,14 @@ export default class Login extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onClickRegister = () => {
|
||||||
|
if (typeof this.props.close === "function") {
|
||||||
|
this.props.close()
|
||||||
|
}
|
||||||
|
|
||||||
|
app.eventBus.emit("app.createRegister")
|
||||||
|
}
|
||||||
|
|
||||||
toogleLoading = (to) => {
|
toogleLoading = (to) => {
|
||||||
if (typeof to === "undefined") {
|
if (typeof to === "undefined") {
|
||||||
to = !this.state.loading
|
to = !this.state.loading
|
||||||
@ -221,7 +229,7 @@ export default class Login extends React.Component {
|
|||||||
{this.state.error}
|
{this.state.error}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="field">
|
<div className="field" onClick={this.onClickRegister}>
|
||||||
<a>You need a account?</a>
|
<a>You need a account?</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user