@@ -41,7 +41,7 @@ class ModOverview extends React.Component {
4141
4242 ReactSwalNormal . fire ( {
4343 title : json_data . detail ,
44- type : "error"
44+ icon : "error"
4545 } ) ;
4646 }
4747 } )
@@ -54,21 +54,16 @@ class ModOverview extends React.Component {
5454 render ( ) {
5555 return (
5656 < div >
57- < div className = "box collapsed-box" id = "add-mod-box" >
58- < div className = "box-header"
59- data-toggle = "collapse"
60- data-target = "#modSearch"
61- aria-expanded = "false"
62- aria-controls = "modSearch"
63- role = "button"
64- style = { { cursor : "pointer" } }
65- >
66- < FontAwesomeIcon icon = "plus" />
67- < h3 className = "box-title" > Add Mod</ h3 >
57+ < div className = "card collapsed-card" id = "add-mod-box" >
58+ < div className = "card-header" >
59+ < button type = "button" className = "btn btn-tool btn-collapse" data-card-widget = "collapse" >
60+ < FontAwesomeIcon icon = "plus" />
61+ </ button >
62+ < h3 className = "card-title" > Add Mod</ h3 >
6863 { this . props . loggedIn ?
69- < div className = "box -tools pull-right " >
64+ < div className = "card -tools" >
7065 < NativeListener onClick = { this . props . factorioLogoutHandler } >
71- < button className = "btn btn-box- tool btn-danger" style = { { color : "#fff" } } >
66+ < button className = "btn btn-tool btn-danger" >
7267 Logout
7368 </ button >
7469 </ NativeListener >
@@ -79,69 +74,48 @@ class ModOverview extends React.Component {
7974 < ModSearch
8075 { ...this . state }
8176 { ...this . props }
82- className = "collapse"
83- id = "modSearch"
8477 submitSearchMod = { this . handlerSearchMod }
8578 submitFactorioLogin = { this . props . submitFactorioLogin }
8679 />
8780 </ div >
8881
89- < div className = "box collapsed-box" >
90- < div className = "box-header"
91- data-toggle = "collapse"
92- data-target = "#modUpload"
93- aria-expanded = "false"
94- aria-controls = "modUpload"
95- role = "button"
96- style = { { cursor : "pointer" } }
97- >
98- < FontAwesomeIcon icon = "plus" />
99- < h3 className = "box-title" > Upload Mod</ h3 >
82+ < div className = "card collapsed-card" >
83+ < div className = "card-header" >
84+ < button type = "button" className = "btn btn-tool btn-collapse" data-card-widget = "collapse" >
85+ < FontAwesomeIcon icon = "plus" />
86+ </ button >
87+ < h3 className = "card-title" > Upload Mod</ h3 >
10088 </ div >
10189
10290 < ModUpload
10391 { ...this . props }
104- className = "collapse"
105- id = "modUpload"
10692 />
10793 </ div >
10894
109- < div className = "box collapsed-box" >
110- < div className = "box-header"
111- data-toggle = "collapse"
112- data-target = "#modLoadSave"
113- aria-expanded = "false"
114- aria-controls = "modLoadSave"
115- role = "button"
116- style = { { cursor : "pointer" } }
117- >
118- < FontAwesomeIcon icon = "plus" />
119- < h3 className = "box-title" > Load Mods From Save</ h3 >
95+ < div className = "card collapsed-card" >
96+ < div className = "card-header" >
97+ < button type = "button" className = "btn btn-tool btn-collapse" data-card-widget = "collapse" >
98+ < FontAwesomeIcon icon = "plus" />
99+ </ button >
100+ < h3 className = "card-title" > Load Mods From Save</ h3 >
120101 </ div >
121102
122103 < ModLoadSave
123104 { ...this . props }
124- className = "collapse"
125- id = "modLoadSave"
126105 />
127106 </ div >
128107
129- < div className = "box" id = "manage-mods" >
130- < div className = "box-header"
131- data-toggle = "collapse"
132- data-target = "#modManager"
133- aria-expanded = "true"
134- aria-controls = "modManager"
135- role = "button"
136- style = { { cursor : "pointer" } }
137- >
138- < FontAwesomeIcon icon = "minus" />
139- < h3 className = "box-title" > Manage Mods</ h3 >
140- < div className = "box-tools float-sm-right" >
108+ < div className = "card" id = "manage-mods" >
109+ < div className = "card-header" >
110+ < button type = "button" className = "btn btn-tool btn-collapse" data-card-widget = "collapse" >
111+ < FontAwesomeIcon icon = "minus" />
112+ </ button >
113+ < h3 className = "card-title" > Manage Mods</ h3 >
114+ < div className = "card-tools" >
141115 {
142116 this . props . installedMods != null ?
143117 < NativeListener onClick = { this . downloadAllHandler } >
144- < a className = "btn btn-box- tool btn-default" style = { { marginRight : 20 } } href = { "/api/mods/download" } download >
118+ < a className = "btn btn-tool btn-default" href = { "/api/mods/download" } download >
145119 Download all Mods
146120 </ a >
147121 </ NativeListener >
@@ -150,7 +124,7 @@ class ModOverview extends React.Component {
150124 {
151125 this . props . updatesAvailable > 0 ?
152126 < NativeListener onClick = { this . props . updateAllMods } >
153- < button className = "btn btn-box- tool btn-default" style = { { marginRight : 20 } } >
127+ < button className = "btn btn-tool btn-default" >
154128 Update all Mods
155129 </ button >
156130 </ NativeListener >
@@ -159,7 +133,7 @@ class ModOverview extends React.Component {
159133 {
160134 this . props . installedMods != null ?
161135 < NativeListener onClick = { this . props . deleteAll } >
162- < button className = "btn btn-box- tool btn-danger" style = { { color : "#fff" } } >
136+ < button className = "btn btn-tool btn-danger" >
163137 Delete ALL Mods
164138 </ button >
165139 </ NativeListener >
@@ -171,26 +145,19 @@ class ModOverview extends React.Component {
171145 < ModManager
172146 { ...this . props }
173147 id = "modManager"
174- className = "show"
175148 />
176149 </ div >
177150
178- < div className = "box collapsed-box" >
179- < div className = "box-header"
180- data-toggle = "collapse"
181- data-target = "#modPacks"
182- aria-expanded = "false"
183- aria-controls = "modPacks"
184- role = "button"
185- style = { { cursor : "pointer" } }
186- >
187- < FontAwesomeIcon icon = "plus" />
188- < h3 className = "box-title" > Manage Modpacks</ h3 >
151+ < div className = "card collapsed-card" >
152+ < div className = "card-header" >
153+ < button type = "button" className = "btn btn-tool btn-collapse" data-card-widget = "collapse" >
154+ < FontAwesomeIcon icon = "plus" />
155+ </ button >
156+ < h3 className = "card-title" > Manage Modpacks</ h3 >
189157 </ div >
190158
191159 < ModPacks
192160 { ...this . props }
193- className = "collapse"
194161 id = "modPacks"
195162 />
196163 </ div >
0 commit comments