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

@ -12,6 +12,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 LibraryTracks extends React.Component {
componentDidMount() {
@ -63,10 +64,14 @@ class LibraryTracks extends React.Component {
}
const options = (
<a className="button button--no-hover" onClick={(e) => this.playAll(e)}>
<Button
onClick={(e) => this.playAll(e)}
tracking={{ category: 'LibraryTracks', action: 'Play' }}
noHover
>
<Icon name="play_circle_filled" />
<I18n path="actions.play_all" />
</a>
</Button>
);
return (