Files
factorio-server-manager/ui/App/components/Mods/overview.jsx

43 lines
1.3 KiB
React
Raw Normal View History

2017-07-28 20:06:01 +02:00
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;