Skip to content
Snippets Groups Projects
Commit 38c1d83c authored by Brian Peiris's avatar Brian Peiris
Browse files

prettier

parent 74e42625
No related branches found
No related tags found
No related merge requests found
...@@ -96,19 +96,24 @@ class ProfileEntryPanel extends Component { ...@@ -96,19 +96,24 @@ class ProfileEntryPanel extends Component {
</div> </div>
<input <input
className="profile-entry__form-field-text" className="profile-entry__form-field-text"
value={this.state.display_name} onChange={(e) => this.setState({display_name: e.target.value})} value={this.state.display_name}
required pattern={SCHEMA.definitions.profile.properties.display_name.pattern} 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" })} title={formatMessage({ id: "profile.display_name.validation_warning" })}
ref={inp => this.nameInput = inp}/> ref={inp => (this.nameInput = inp)}
/>
<iframe <iframe
className="profile-entry__avatar-selector" className="profile-entry__avatar-selector"
src={ src={
/* HACK: Have to account for the smoke test server like this. Feels wrong though. */ /* 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}` `/${/smoke/i.test(location.hostname) ? "smoke-" : ""}avatar-selector.html#avatar_id=${
this.state.avatar_id
}`
} }
ref={ifr => this.avatarSelector = ifr}></iframe> ref={ifr => (this.avatarSelector = ifr)}
<input className="profile-entry__form-submit" type="submit" value={formatMessage({ id: "profile.save" }) }/> />
</div> <input className="profile-entry__form-submit" type="submit" value={formatMessage({ id: "profile.save" })} />
</form> </form>
</div> </div>
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment