about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/list_editor
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-09-09 16:41:41 +0200
committerThibG <thib@sitedethib.com>2019-09-09 19:00:20 +0200
commit2aa0cdf7e6c44f252ffbcc991a5391c31386058d (patch)
tree13035cecf4def4933ecef3a09bf3a3647f2560fc /app/javascript/flavours/glitch/features/list_editor
parentf154d9d6e9ca461cf608674494cb23eee6db6534 (diff)
Use the `Icon` component instead of directly using `i` tag
Diffstat (limited to 'app/javascript/flavours/glitch/features/list_editor')
-rw-r--r--app/javascript/flavours/glitch/features/list_editor/components/search.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/list_editor/components/search.js b/app/javascript/flavours/glitch/features/list_editor/components/search.js
index 280632652..192643f77 100644
--- a/app/javascript/flavours/glitch/features/list_editor/components/search.js
+++ b/app/javascript/flavours/glitch/features/list_editor/components/search.js
@@ -2,6 +2,7 @@ import React from 'react';
 import PropTypes from 'prop-types';
 import { defineMessages } from 'react-intl';
 import classNames from 'classnames';
+import Icon from 'flavours/glitch/components/icon';
 
 const messages = defineMessages({
   search: { id: 'lists.search', defaultMessage: 'Search among people you follow' },
@@ -51,8 +52,8 @@ export default class Search extends React.PureComponent {
         </label>
 
         <div role='button' tabIndex='0' className='search__icon' onClick={this.handleClear}>
-          <i className={classNames('fa fa-search', { active: !hasValue })} />
-          <i aria-label={intl.formatMessage(messages.search)} className={classNames('fa fa-times-circle', { active: hasValue })} />
+          <Icon id='search' className={classNames({ active: !hasValue })} />
+          <Icon id='times-circle' aria-label={intl.formatMessage(messages.search)} className={classNames({ active: hasValue })} />
         </div>
       </div>
     );