Button to .button; Commands setup UI; polishing context menu

This commit is contained in:
James Barnsley
2018-11-16 15:26:10 +13:00
parent 55c75729e6
commit 6341bbb1ac
20 changed files with 436 additions and 385 deletions

View File

@ -174,12 +174,12 @@ class LibraryBrowse extends React.Component{
options={view_options}
handleChange={value => {this.props.uiActions.set({ library_directory_view: value }); this.props.uiActions.hideContextMenu()}}
/>
{tracks ? <button className="no-hover" onClick={e => this.playAll(e, tracks)}>
{tracks ? <a className="button no-hover" onClick={e => {this.props.uiActions.hideContextMenu(); this.playAll(e, tracks)}}>
<Icon name="play_circle_filled" />Play all
</button> : null }
<button className="no-hover" onClick={e => this.goBack(e)}>
</a> : null }
<a className="button no-hover" onClick={e => {this.props.uiActions.hideContextMenu(); this.goBack(e)}}>
<Icon name="keyboard_backspace" />Back
</button>
</a>
</span>
);
@ -266,7 +266,7 @@ class LibraryBrowse extends React.Component{
return (
<div className="view library-local-view">
<Header>
<Header uiActions={this.props.uiActions}>
<Icon name="folder" type="material" />
Browse
</Header>