mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 20:21:35 +00:00
Refactor info endpoint calls
This commit is contained in:
parent
7bf77a538e
commit
463608f9b2
@ -37,10 +37,6 @@ const SettingsPage = (): JSX.Element => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (page === 'settings') void federation.loadInfo();
|
|
||||||
}, [page]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Paper
|
<Paper
|
||||||
elevation={12}
|
elevation={12}
|
||||||
|
@ -128,9 +128,9 @@ const FederationTable = ({
|
|||||||
onClickCoordinator(params.row.shortAlias);
|
onClickCoordinator(params.row.shortAlias);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{Boolean(params.row.loadingInfo) && Boolean(params.row.enabled) ? (
|
{Boolean(params.row.loadingLimits) && Boolean(params.row.enabled) ? (
|
||||||
<CircularProgress thickness={0.35 * fontSize} size={1.5 * fontSize} />
|
<CircularProgress thickness={0.35 * fontSize} size={1.5 * fontSize} />
|
||||||
) : params.row.info !== undefined ? (
|
) : params.row.limits !== undefined ? (
|
||||||
<Link color='success' />
|
<Link color='success' />
|
||||||
) : (
|
) : (
|
||||||
<LinkOff color='error' />
|
<LinkOff color='error' />
|
||||||
|
Loading…
Reference in New Issue
Block a user