Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow committed Aug 5, 2024
1 parent d7b1ca8 commit e9b65ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion apps/guardian-ui/src/admin/FederationAdmin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export const FederationAdmin: React.FC = () => {
status={status}
config={config}
signedApiAnnouncements={signedApiAnnouncements}
ourPeer={ourPeer}
/>
<GatewaysCard config={config} />
{ourPeer && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ interface Props {
status: StatusResponse | undefined;
config: ClientConfig | undefined;
signedApiAnnouncements: Record<string, SignedApiAnnouncement>;
ourPeer: { id: number; name: string } | undefined;
}

export const GuardiansCard: React.FC<Props> = ({
status,
config,
signedApiAnnouncements,
ourPeer,
}) => {
const { t } = useTranslation();

Expand Down Expand Up @@ -64,10 +62,7 @@ export const GuardiansCard: React.FC<Props> = ({
if (endpoint) {
peerDataArray.push({
key: id,
idName:
ourPeer?.id === numericId
? `${numericId}: ${ourPeer.name} (You)`
: numericId,
idName: `${numericId}: ${endpoint.name}`,
status: (
<StatusIndicator
status={
Expand Down Expand Up @@ -97,7 +92,7 @@ export const GuardiansCard: React.FC<Props> = ({
}
}
return peerDataArray;
}, [status, config, signedApiAnnouncements, t, ourPeer]);
}, [status, config, signedApiAnnouncements, t]);

if (config && !rows.length) {
return null;
Expand Down
5 changes: 2 additions & 3 deletions apps/guardian-ui/src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,13 @@
},
"guardians": {
"label": "Other Guardians",
"name-label": "Name",
"id-name-label": "ID: Name",
"status-label": "Connection Status",
"health-label": "Health",
"health-issue": "Issue",
"health-good": "Good",
"last-contribution-label": "Last contribution block",
"api-url-label": "API URL",
"peer-id-label": "Peer ID"
"api-url-label": "API URL"
},
"gateways": {
"label": "Lightning Gateways",
Expand Down

0 comments on commit e9b65ef

Please sign in to comment.