mirror of
https://github.com/wassname/talk.git
synced 2026-07-16 11:22:16 +08:00
Removing Best from the core
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import styles from './styles.css';
|
||||
import cn from 'classnames';
|
||||
import {t, can} from 'plugin-api/beta/client/services';
|
||||
import {can} from 'plugin-api/beta/client/services';
|
||||
import {name} from '../../package.json';
|
||||
import {withTags} from 'plugin-api/beta/client/hocs';
|
||||
import {Icon} from 'plugin-api/beta/client/components/ui';
|
||||
@@ -14,15 +14,7 @@ const FeaturedButton = (props) => {
|
||||
className={cn([name, styles.button, {[styles.featured] : alreadyTagged}])}
|
||||
onClick={alreadyTagged ? deleteTag : postTag} >
|
||||
|
||||
{alreadyTagged ? (
|
||||
<span>
|
||||
{t('featured')} <Icon name="label" />
|
||||
</span>
|
||||
) : (
|
||||
<span>
|
||||
{t('feature')} <Icon name="label_outline" />
|
||||
</span>
|
||||
)}
|
||||
{alreadyTagged ? <Icon name="star" /> : <Icon name="star_border" />}
|
||||
|
||||
</button>
|
||||
) : null ;
|
||||
|
||||
Reference in New Issue
Block a user