fix: use sync not progress
This commit is contained in:
parent
c3400859dc
commit
1d1a02527b
|
@ -87,8 +87,8 @@ const CircularProgress = ({
|
||||||
chain: Network;
|
chain: Network;
|
||||||
className?: string;
|
className?: string;
|
||||||
}) => {
|
}) => {
|
||||||
const progressOffset = ((100 - chain.progress) / 100) * 282.74; // These math are not mathing
|
const progressOffset = ((100 - chain.sync) / 100) * 282.74; // These math are not mathing
|
||||||
const textOffset = (chain.progress / 100) * (30 - 44) + 44;
|
const textOffset = (chain.sync / 100) * (30 - 44) + 44;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
|
@ -132,7 +132,7 @@ const CircularProgress = ({
|
||||||
fontWeight="normal"
|
fontWeight="normal"
|
||||||
style={{ transform: "rotate(90deg) translate(0px, -98px)" }}
|
style={{ transform: "rotate(90deg) translate(0px, -98px)" }}
|
||||||
>
|
>
|
||||||
{chain.progress}
|
{chain.sync}
|
||||||
</text>
|
</text>
|
||||||
</svg>
|
</svg>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue