Upgrading all buttons to Button component

This commit is contained in:
James Barnsley
2020-08-16 20:00:10 +12:00
parent eb90730667
commit d02d5dd491
42 changed files with 1060 additions and 531 deletions

View File

@ -11,6 +11,7 @@ import * as mopidyActions from '../../services/mopidy/actions';
import * as spotifyActions from '../../services/spotify/actions';
import { isLoading } from '../../util/helpers';
import { i18n, I18n } from '../../locale';
import Button from '../../components/Button';
class DiscoverFeatured extends React.Component {
componentDidMount() {
@ -89,10 +90,14 @@ class DiscoverFeatured extends React.Component {
}
const options = (
<a className="button button--no-hover" onClick={this.onRefresh}>
<Button
noHover
onClick={this.onRefresh}
tracking={{ category: 'DiscoverFeatured', action: 'Refresh' }}
>
<Icon name="refresh" />
<I18n path="actions.refresh" />
</a>
</Button>
);
return (