diff --git a/ui/js/component/auth.js b/ui/js/component/auth.js
index 261b065b1..df18b0817 100644
--- a/ui/js/component/auth.js
+++ b/ui/js/component/auth.js
@@ -9,23 +9,28 @@ import {CreditAmount, Address} from "../component/common.js";
import {getLocal, getSession, setSession, setLocal} from '../utils.js';
-const SubmitEmailStage = React.createClass({
- getInitialState: function() {
- return {
+class SubmitEmailStage extends React.Component {
+ constructor(props) {
+ super(props);
+
+ this.state = {
rewardType: null,
email: '',
submitting: false
};
- },
- handleEmailChanged: function(event) {
+ }
+
+ handleEmailChanged(event) {
this.setState({
email: event.target.value,
});
- },
- onEmailSaved: function(email) {
+ }
+
+ onEmailSaved(email) {
this.props.setStage("confirm", { email: email })
- },
- handleSubmit: function(event) {
+ }
+
+ handleSubmit(event) {
event.preventDefault();
this.setState({
@@ -42,8 +47,9 @@ const SubmitEmailStage = React.createClass({
}
this.setState({ submitting: false });
});
- },
- render: function() {
+ }
+
+ render() {
return (
An error was encountered that we cannot continue from. Preparing for first access