From 5f69fab65a2ffd20de9839c1232b0aaae4a0a534 Mon Sep 17 00:00:00 2001 From: Brian Peiris <brianpeiris@gmail.com> Date: Thu, 29 Mar 2018 21:09:10 -0700 Subject: [PATCH] fix jsx syntax --- src/react-components/profile-entry-panel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/react-components/profile-entry-panel.js b/src/react-components/profile-entry-panel.js index d0b3d053d..91044c27c 100644 --- a/src/react-components/profile-entry-panel.js +++ b/src/react-components/profile-entry-panel.js @@ -77,8 +77,10 @@ class ProfileEntryPanel extends Component { ref={inp => this.nameInput = inp}/> <iframe className="profile-entry__avatar-selector" - {/* HACK: Have to account for the smoke test server like this. Feels wrong though. */} - src={`${/smoke/i.test(location.hostname) ? 'smoke-' : ''}avatar-selector.html#avatar_id=${this.state.avatar_id}`} + 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}></iframe> <input className="profile-entry__form-submit" type="submit" value={formatMessage({ id: "profile.save" }) }/> </div> -- GitLab