From de8ac6c56a956ff7107defebcc1e41c4264da43e Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Tue, 21 Jun 2016 18:45:41 -0400 Subject: [PATCH] Only pass necessary props to steps Rather than lazily including all form progress to every step, just give each step what it needs. --- src/views/teacherregistration/steps.jsx | 18 +++++------ .../teacherregistration.jsx | 32 +++++++++++++------ 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/src/views/teacherregistration/steps.jsx b/src/views/teacherregistration/steps.jsx index 341d6a749..030e56b24 100644 --- a/src/views/teacherregistration/steps.jsx +++ b/src/views/teacherregistration/steps.jsx @@ -5,7 +5,6 @@ var countryData = require('../../lib/country-data'); var intl = require('../../lib/intl.jsx'); var log = require('../../lib/log'); var smartyStreets = require('../../lib/smarty-streets'); -var urlParams = require('../../lib/url-params'); var Button = require('../../components/forms/button.jsx'); var Card = require('../../components/card/card.jsx'); @@ -286,10 +285,7 @@ module.exports = {
@@ -602,7 +600,7 @@ module.exports = {


- {this.props.formData.user && this.props.formData.user.email} + {this.props.email}

diff --git a/src/views/teacherregistration/teacherregistration.jsx b/src/views/teacherregistration/teacherregistration.jsx index 8ea60998e..89b51d930 100644 --- a/src/views/teacherregistration/teacherregistration.jsx +++ b/src/views/teacherregistration/teacherregistration.jsx @@ -79,15 +79,29 @@ var TeacherRegistration = React.createClass({ : - - - - - - - - - + + + + + + + + + }