Skip to content

Commit fe380e5

Browse files
committed
added table for listing modpacks
1 parent f284508 commit fe380e5

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

ui/App/components/Mods/ModPacks.jsx

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,32 @@ class ModPacks extends React.Component {
1313
</div>
1414

1515
<div className="box-body">
16-
<p>itest</p>
16+
<table className="table table-striped">
17+
<thead>
18+
<tr>
19+
<th>Name</th>
20+
<th>Download</th>
21+
<th>Delete</th>
22+
</tr>
23+
</thead>
24+
<tbody>
25+
{this.props.modPacks.map( (mod, i) => {
26+
return(
27+
<tr key={i}>
28+
<td>{mod}</td>
29+
</tr>
30+
)
31+
})}
32+
</tbody>
33+
</table>
1734
</div>
1835
</div>
1936
)
2037
}
21-
38+
}
39+
40+
ModPacks.propTypes = {
41+
modPacks: React.PropTypes.array.isRequired,
2242
}
2343

2444
export default ModPacks

ui/App/components/ModsContent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class ModsContent extends React.Component {
108108
toggleMod={this.toggleMod}
109109
/>
110110
<ModPacks
111-
111+
{...this.state}
112112
/>
113113

114114
</section>

ui/App/components/Saves/SavesList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class SavesList extends React.Component {
7676
</tr>
7777
</thead>
7878
<tbody>
79-
{savesList}
79+
{savesList}
8080
</tbody>
8181
</table>
8282
</div>

0 commit comments

Comments
 (0)