mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-02-09 13:47:17 +02:00
added table for listing modpacks
This commit is contained in:
parent
f284508c36
commit
fe380e594f
@ -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
|
||||
|
@ -108,7 +108,7 @@ class ModsContent extends React.Component {
|
||||
toggleMod={this.toggleMod}
|
||||
/>
|
||||
<ModPacks
|
||||
|
||||
{...this.state}
|
||||
/>
|
||||
|
||||
</section>
|
||||
|
@ -76,7 +76,7 @@ class SavesList extends React.Component {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{savesList}
|
||||
{savesList}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user