mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-02-13 13:59:49 +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>
|
||||||
|
|
||||||
<div className="box-body">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ModPacks.propTypes = {
|
||||||
|
modPacks: React.PropTypes.array.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ModPacks
|
export default ModPacks
|
||||||
|
@ -108,7 +108,7 @@ class ModsContent extends React.Component {
|
|||||||
toggleMod={this.toggleMod}
|
toggleMod={this.toggleMod}
|
||||||
/>
|
/>
|
||||||
<ModPacks
|
<ModPacks
|
||||||
|
{...this.state}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user