refactor(gui): Seperate background refresh logic (#193)

This commit is contained in:
binarybaron 2024-11-19 15:03:55 +01:00 committed by GitHub
parent b409db35d0
commit d953114c49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 151 additions and 159 deletions

View file

@ -74,7 +74,7 @@ export default function ProviderInfo({
Maximum swap amount: <SatsAmount amount={provider.maxSwapAmount} />
</Typography>
<Box className={classes.chipsOuter}>
<Chip label={provider.testnet ? "Testnet" : "Mainnet"} />
{provider.testnet && <Chip label="Testnet" />}
{provider.uptime && (
<Tooltip title="A high uptime (>90%) indicates reliability. Providers with very low uptime may be unreliable and cause swaps to take longer to complete or fail entirely.">
<Chip label={`${Math.round(provider.uptime * 100)}% uptime`} />