File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff 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
2444export default ModPacks
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments