diff --git a/src/react-components/profile-entry-panel.js b/src/react-components/profile-entry-panel.js index 867f895892e6b5a33b03908c3445749f5874e03a..898137300f13742c7bdb57a7ca2e8dca191b17e6 100644 --- a/src/react-components/profile-entry-panel.js +++ b/src/react-components/profile-entry-panel.js @@ -87,7 +87,7 @@ class ProfileEntryPanel extends Component { className="profile-entry__avatar-selector" src={ /* HACK: Have to account for the smoke test server like this. Feels wrong though. */ - `${/smoke/i.test(location.hostname) ? "smoke-" : ""}avatar-selector.html#avatar_id=${ + `$/{/smoke/i.test(location.hostname) ? "smoke-" : ""}avatar-selector.html#avatar_id=${ this.state.avatar_id }` } @@ -95,26 +95,6 @@ class ProfileEntryPanel extends Component { /> <input className="profile-entry__form-submit" type="submit" value={formatMessage({ id: "profile.save" })} /> </div> - <input - className="profile-entry__form-field-text" - value={this.state.display_name} - onChange={e => this.setState({ display_name: e.target.value })} - required - pattern={SCHEMA.definitions.profile.properties.display_name.pattern} - title={formatMessage({ id: "profile.display_name.validation_warning" })} - ref={inp => (this.nameInput = inp)} - /> - <iframe - className="profile-entry__avatar-selector" - src={ - /* HACK: Have to account for the smoke test server like this. Feels wrong though. */ - `/${/smoke/i.test(location.hostname) ? "smoke-" : ""}avatar-selector.html#avatar_id=${ - this.state.avatar_id - }` - } - ref={ifr => (this.avatarSelector = ifr)} - /> - <input className="profile-entry__form-submit" type="submit" value={formatMessage({ id: "profile.save" })} /> </form> </div> );