mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
bounded
This commit is contained in:
@@ -29,6 +29,10 @@ export default class ModTag extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openFeaturedDialog = (comment, asset) => {
|
||||||
|
this.props.openFeaturedDialog(comment, asset);
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {alreadyTagged, deleteTag, comment, asset} = this.props;
|
const {alreadyTagged, deleteTag, comment, asset} = this.props;
|
||||||
|
|
||||||
@@ -42,7 +46,7 @@ export default class ModTag extends React.Component {
|
|||||||
</span>
|
</span>
|
||||||
) : (
|
) : (
|
||||||
<span className={cn(styles.tag, {[styles.featured]: alreadyTagged})}
|
<span className={cn(styles.tag, {[styles.featured]: alreadyTagged})}
|
||||||
onClick={() => this.props.openFeaturedDialog(comment, asset)} >
|
onClick={() => this.openFeaturedDialog(comment, asset)} >
|
||||||
<Icon name="star_outline" className={cn(styles.tagIcon)} />
|
<Icon name="star_outline" className={cn(styles.tagIcon)} />
|
||||||
{alreadyTagged ? t('talk-plugin-featured-comments.featured') : t('talk-plugin-featured-comments.feature')}
|
{alreadyTagged ? t('talk-plugin-featured-comments.featured') : t('talk-plugin-featured-comments.feature')}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user