refactor: fourth pass at CircularProgress
This commit is contained in:
parent
4d54603ee5
commit
c18fc924a4
|
@ -125,7 +125,7 @@ const CircularProgress = ({
|
||||||
chain: Network;
|
chain: Network;
|
||||||
className?: string;
|
className?: string;
|
||||||
}) => {
|
}) => {
|
||||||
const size = 60;
|
const size = 70;
|
||||||
const progressWidth = 2;
|
const progressWidth = 2;
|
||||||
const circleWidth = 2;
|
const circleWidth = 2;
|
||||||
const radius = size / 2 - 10;
|
const radius = size / 2 - 10;
|
||||||
|
@ -166,12 +166,12 @@ const CircularProgress = ({
|
||||||
fill="transparent"
|
fill="transparent"
|
||||||
strokeDasharray={`${circumference}px`}></circle>
|
strokeDasharray={`${circumference}px`}></circle>
|
||||||
<text
|
<text
|
||||||
x="21px"
|
x="27px"
|
||||||
y="32px"
|
y="39px"
|
||||||
fill="currentColor"
|
fill="currentColor"
|
||||||
fontSize={`${fontSize}px`}
|
fontSize={`${fontSize}px`}
|
||||||
fontWeight="normal"
|
fontWeight="normal"
|
||||||
style={{ transform: "rotate(90deg) translate(0px, -56px)" }}>
|
style={{ transform: "rotate(90deg) translate(0px, -66px)" }}>
|
||||||
{chain.sync}
|
{chain.sync}
|
||||||
</text>
|
</text>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Loading…
Reference in New Issue