added table for listing modpacks

This commit is contained in:
majormjr 2016-05-13 23:48:39 -04:00
parent f284508c36
commit fe380e594f
3 changed files with 24 additions and 4 deletions

View File

@ -13,12 +13,32 @@ class ModPacks extends React.Component {
</div>
<div className="box-body">
<p>itest</p>
<table className="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Download</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
{this.props.modPacks.map( (mod, i) => {
return(
<tr key={i}>
<td>{mod}</td>
</tr>
)
})}
</tbody>
</table>
</div>
</div>
)
}
}
ModPacks.propTypes = {
modPacks: React.PropTypes.array.isRequired,
}
export default ModPacks

View File

@ -108,7 +108,7 @@ class ModsContent extends React.Component {
toggleMod={this.toggleMod}
/>
<ModPacks
{...this.state}
/>
</section>

View File

@ -76,7 +76,7 @@ class SavesList extends React.Component {
</tr>
</thead>
<tbody>
{savesList}
{savesList}
</tbody>
</table>
</div>