aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/components/presentational
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-02-16 22:10:33 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-02-16 22:10:33 +0100
commit065c798078586b98f974c4f8ee2d1a7af1ad9218 (patch)
tree8f7c3e6132da54438b26a169e9d1ecab95d3c6df /src/client/react/components/presentational
parent48ca524d275e05d39904a40486fb2a146eb37371 (diff)
Add client support for alts
Diffstat (limited to 'src/client/react/components/presentational')
-rw-r--r--src/client/react/components/presentational/Result.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/react/components/presentational/Result.js b/src/client/react/components/presentational/Result.js
index a30cf52..83c6709 100644
--- a/src/client/react/components/presentational/Result.js
+++ b/src/client/react/components/presentational/Result.js
@@ -24,7 +24,14 @@ class Result extends React.Component {
<div className="search__icon-wrapper">
<IconFromUserType userType={users.byId[this.props.userId].type} />
</div>
- <div className="search__result__text">{users.byId[this.props.userId].value}</div>
+ <div className="search__result__text">
+ {users.byId[this.props.userId].value}
+ {users.byId[this.props.userId].alt &&
+ <span className="search__result__text__alt">
+ {` ${users.byId[this.props.userId].alt}`}
+ </span>
+ }
+ </div>
</div>
);
}