mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-14 11:26:24 +00:00
Fix loading line in Book
This commit is contained in:
parent
d77a066bd9
commit
a30155327b
@ -907,6 +907,11 @@ const BookTable = ({
|
|||||||
: orders;
|
: orders;
|
||||||
}, [showControls, orders, fav, paymentMethods]);
|
}, [showControls, orders, fav, paymentMethods]);
|
||||||
|
|
||||||
|
const loadingPercentage =
|
||||||
|
((federation.exchange.enabledCoordinators - federation.exchange.loadingCoordinators) /
|
||||||
|
federation.exchange.enabledCoordinators) *
|
||||||
|
100;
|
||||||
|
|
||||||
if (!fullscreen) {
|
if (!fullscreen) {
|
||||||
return (
|
return (
|
||||||
<Paper
|
<Paper
|
||||||
@ -938,12 +943,8 @@ const BookTable = ({
|
|||||||
setPaymentMethods,
|
setPaymentMethods,
|
||||||
},
|
},
|
||||||
loadingOverlay: {
|
loadingOverlay: {
|
||||||
variant: 'determinate',
|
variant: loadingPercentage === 0 ? 'indeterminate' : 'determinate',
|
||||||
value:
|
value: loadingPercentage,
|
||||||
((federation.exchange.enabledCoordinators -
|
|
||||||
federation.exchange.loadingCoordinators) /
|
|
||||||
federation.exchange.enabledCoordinators) *
|
|
||||||
100,
|
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
paginationModel={paginationModel}
|
paginationModel={paginationModel}
|
||||||
|
Loading…
Reference in New Issue
Block a user