diff options
author | Reverite <github@reverite.sh> | 2019-09-09 20:01:01 -0700 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-09-09 20:01:01 -0700 |
commit | 849e2bc4ca11892e701835a4696904d78b1ad325 (patch) | |
tree | b579de6026e032167d7ba837b6f6cb3c7568ea24 /app/javascript/flavours/glitch/components/status_prepend.js | |
parent | 244196cf4a20005865bf0b9a1d99146e61e59ae4 (diff) | |
parent | 2aa0cdf7e6c44f252ffbcc991a5391c31386058d (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'app/javascript/flavours/glitch/components/status_prepend.js')
-rw-r--r-- | app/javascript/flavours/glitch/components/status_prepend.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/components/status_prepend.js b/app/javascript/flavours/glitch/components/status_prepend.js index 481e6644e..344c4d423 100644 --- a/app/javascript/flavours/glitch/components/status_prepend.js +++ b/app/javascript/flavours/glitch/components/status_prepend.js @@ -3,6 +3,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; +import Icon from 'flavours/glitch/components/icon'; export default class StatusPrepend extends React.PureComponent { @@ -80,10 +81,9 @@ export default class StatusPrepend extends React.PureComponent { return !type ? null : ( <aside className={type === 'reblogged_by' || type === 'featured' ? 'status__prepend' : 'notification__message'}> <div className={type === 'reblogged_by' || type === 'featured' ? 'status__prepend-icon-wrapper' : 'notification__favourite-icon-wrapper'}> - <i - className={`fa fa-fw fa-${ - type === 'favourite' ? 'star star-icon' : (type === 'featured' ? 'thumb-tack' : (type === 'poll' ? 'tasks' : 'retweet')) - } status__prepend-icon`} + <Icon + className={`status__prepend-icon ${type === 'favourite' ? 'star-icon' : ''}`} + id={type === 'favourite' ? 'star' : (type === 'featured' ? 'thumb-tack' : (type === 'poll' ? 'tasks' : 'retweet'))} /> </div> <Message /> |