Unified lists and columns

This commit is contained in:
James Barnsley
2017-03-13 13:17:11 +13:00
parent db738365d6
commit edbb2e058c
11 changed files with 144 additions and 197 deletions

View File

@ -290,8 +290,13 @@ class TrackList extends React.Component{
if( !this.state.tracks || Object.prototype.toString.call(this.state.tracks) !== '[object Array]' ) return null
let self = this;
var className = 'list track-list '+this.props.context
if (this.props.className){
className += ' '+this.props.className
}
return (
<div className={this.props.context+" track-list"}>
<div className={className}>
{ this.renderHeader() }
{
this.state.tracks.map(