Skip to content

Commit

Permalink
Merge pull request #462 from harsh-ps-2003/peerid
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow authored Aug 5, 2024
2 parents ca944f7 + e9b65ef commit 27db564
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { StatusIndicator, Table, TableColumn, TableRow } from '@fedimint/ui';
import { useTranslation } from '@fedimint/utils';

type TableKey = 'name' | 'status' | 'health' | 'lastContribution' | 'apiUrl';
type TableKey = 'idName' | 'status' | 'health' | 'lastContribution' | 'apiUrl';

interface Props {
status: StatusResponse | undefined;
Expand All @@ -27,8 +27,8 @@ export const GuardiansCard: React.FC<Props> = ({
const columns: TableColumn<TableKey>[] = useMemo(
() => [
{
key: 'name',
heading: t('federation-dashboard.guardians.name-label'),
key: 'idName',
heading: t('federation-dashboard.guardians.id-name-label'),
},
{
key: 'status',
Expand Down Expand Up @@ -62,7 +62,7 @@ export const GuardiansCard: React.FC<Props> = ({
if (endpoint) {
peerDataArray.push({
key: id,
name: endpoint.name,
idName: `${numericId}: ${endpoint.name}`,
status: (
<StatusIndicator
status={
Expand Down
3 changes: 2 additions & 1 deletion apps/guardian-ui/src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"block-count-label": "Consensus Block Height",
"api-version-label": "API version",
"consensus-version-label": "Consensus version",
"peer-id-label": "Peer ID",
"session-info": {
"session-height": "Session Height",
"latest-session": "Latest Session"
Expand All @@ -54,7 +55,7 @@
},
"guardians": {
"label": "Other Guardians",
"name-label": "Name",
"id-name-label": "ID: Name",
"status-label": "Connection Status",
"health-label": "Health",
"health-issue": "Issue",
Expand Down

0 comments on commit 27db564

Please sign in to comment.