You've already forked factorio-server-manager
mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-07-05 00:38:51 +02:00
43 lines
1.3 KiB
React
43 lines
1.3 KiB
React
![]() |
import React from 'react';
|
||
|
import Mod from './Mod';
|
||
|
|
||
|
class ModOverview extends React.Component {
|
||
|
render() {
|
||
|
<div className="box">
|
||
|
<div className="box-header">
|
||
|
<h3 className="box-title">Manage Mods</h3>
|
||
|
</div>
|
||
|
|
||
|
<div className="box-body">
|
||
|
<div className="table-responsive">
|
||
|
<table className="table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Status</th>
|
||
|
<th>Toggle Status</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{this.props.installedMods.map ( (mod, i) => {
|
||
|
return(
|
||
|
<Mod
|
||
|
key={i}
|
||
|
mod={mod}
|
||
|
{...this.props}
|
||
|
/>
|
||
|
)
|
||
|
})}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
}
|
||
|
}
|
||
|
|
||
|
ModOverview.propTypes = {
|
||
|
installedMods: React.PropTypes.array.isRequired
|
||
|
}
|
||
|
|
||
|
export default ModOverview;
|