@@ -218,8 +218,15 @@ function ClientSetting({
218
218
size = "small"
219
219
>
220
220
< Stack direction = "row" alignItems = "center" spacing = { 1 } >
221
- < Typography sx = { { fontSize : 12 , width : buttonsLoading [ name ] ? 70 : 90 } } > Disconnect</ Typography >
222
- { buttonsLoading [ name ] && < CircularProgress size = { 12 } /> }
221
+ { buttonsLoading [ name ]
222
+ &&
223
+ < >
224
+ < Typography sx = { { fontSize : 12 , width : 70 } } > Connect</ Typography >
225
+ < CircularProgress size = { 12 } />
226
+ </ >
227
+ ||
228
+ < Typography sx = { { fontSize : 12 , width : 90 } } > Disconnect</ Typography >
229
+ }
223
230
</ Stack >
224
231
</ Button >
225
232
) }
@@ -248,8 +255,15 @@ function ClientSetting({
248
255
size = "small"
249
256
>
250
257
< Stack direction = "row" alignItems = "center" spacing = { 1 } >
251
- < Typography sx = { { fontSize : 12 , width : buttonsLoading [ name ] ? 70 : 90 } } > Connect</ Typography >
252
- { buttonsLoading [ name ] && < CircularProgress size = { 12 } /> }
258
+ { buttonsLoading [ name ]
259
+ &&
260
+ < >
261
+ < Typography sx = { { fontSize : 12 , width : 70 } } > Disconnect</ Typography >
262
+ < CircularProgress size = { 12 } />
263
+ </ >
264
+ ||
265
+ < Typography sx = { { fontSize : 12 , width : 90 } } > Connect</ Typography >
266
+ }
253
267
</ Stack >
254
268
</ Button >
255
269
) }
@@ -273,8 +287,15 @@ function ClientSetting({
273
287
} }
274
288
>
275
289
< Stack direction = "row" alignItems = "center" spacing = { 1 } >
276
- < Typography sx = { { fontSize : 12 , width : buttonsLoading [ name ] ? 70 : 90 } } > Connect</ Typography >
277
- { buttonsLoading [ name ] && < CircularProgress size = { 12 } /> }
290
+ { buttonsLoading [ name ]
291
+ &&
292
+ < >
293
+ < Typography sx = { { fontSize : 12 , width : 70 } } > Disconnect</ Typography >
294
+ < CircularProgress size = { 12 } />
295
+ </ >
296
+ ||
297
+ < Typography sx = { { fontSize : 12 , width : 90 } } > Connect</ Typography >
298
+ }
278
299
</ Stack >
279
300
</ Button >
280
301
) }
0 commit comments