diff options
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; |