diff --git a/src/components/registration/steps.jsx b/src/components/registration/steps.jsx index 2f582ffb0..b505d71ca 100644 --- a/src/components/registration/steps.jsx +++ b/src/components/registration/steps.jsx @@ -27,6 +27,23 @@ var Tooltip = require('../../components/tooltip/tooltip.jsx'); require('./steps.scss'); var DEFAULT_COUNTRY = 'us'; +var getCountryOptions = function (defaultCountry) { + var options = countryData.countryOptions.concat({ + label: , + disabled: true, + selected: true + }); + if (typeof defaultCountry !== 'undefined') { + return options.sort(function (a, b) { + if (a.disabled) return -1; + if (b.disabled) return 1; + if (a.value === defaultCountry) return -1; + if (b.value === defaultCountry) return 1; + return 0; + }.bind(this)); + } + return options; +}; var NextStepButton = React.createClass({ getDefaultProps: function () { @@ -124,12 +141,14 @@ module.exports = {
- {formatMessage({id: 'registration.createUsername'})} - {this.props.usernameHelp ? ( -

{this.props.usernameHelp}

- ):( - null - )} +
+ {formatMessage({id: 'registration.createUsername'})} + {this.props.usernameHelp ? ( +

{this.props.usernameHelp}

+ ):( + null + )} +