diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-12-14 18:54:00 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-12-14 18:54:00 +0100 |
commit | 569b2969d530f08e55798c5cb3079948c7c037cd (patch) | |
tree | f90c5c524f1d3536a1f6ab665a7350739f590b7a /src/client/react/components/presentational/Result.jsx | |
parent | 8e9d5e98793f7594a8a1a1b5956163eca6795164 (diff) |
Use .js extention instead of .jsx
Diffstat (limited to 'src/client/react/components/presentational/Result.jsx')
-rw-r--r-- | src/client/react/components/presentational/Result.jsx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/client/react/components/presentational/Result.jsx b/src/client/react/components/presentational/Result.jsx deleted file mode 100644 index 0b9e024..0000000 --- a/src/client/react/components/presentational/Result.jsx +++ /dev/null @@ -1,24 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import classnames from 'classnames'; -import users from '../../users'; - -import IconFromUserType from './IconFromUserType'; - -const Result = ({ userId, isSelected }) => ( - <div - className={classnames('search__result', { - 'search__result--selected': isSelected, - })} - > - <div className="search__icon-wrapper"><IconFromUserType userType={users.byId[userId].type} /></div> - <div className="search__result__text">{users.byId[userId].value}</div> - </div> -); - -Result.propTypes = { - userId: PropTypes.string.isRequired, - isSelected: PropTypes.bool.isRequired, -}; - -export default Result; |