Removing Best from the core

This commit is contained in:
Belen Curcio
2017-07-03 15:27:08 -03:00
parent 002dc377a6
commit 34dbbb0984
11 changed files with 9 additions and 359 deletions
@@ -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 ;