Skip to content

Commit

Permalink
Settings: Chain info formatting + i18n (#2342) (#3987)
Browse files Browse the repository at this point in the history
Co-authored-by: Joystream Stats <[email protected]>
  • Loading branch information
traumschule and Joystream Stats authored Dec 19, 2022
1 parent aea293f commit ab2e1c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 3 additions & 7 deletions packages/ui/src/app/pages/Settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,13 @@ export const Settings = () => {
<PolkadotAppInfo rpcUrl={endpoints.nodeRpcEndpoint} />
</>
)}
<SettingsInformation icon={<WarnedIcon />} title="Chain Informations">
<SettingsInformation icon={<WarnedIcon />} title={t('chainInfo')}>
<ColumnGapBlock gap={5}>
<TextMedium lighter bold>
RPC blockheight:{' '}
</TextMedium>
<TextMedium lighter>t('rpcBlockheight')</TextMedium>
<TextMedium lighter>{formatTokenValue(header?.number.toNumber())}</TextMedium>
</ColumnGapBlock>
<ColumnGapBlock gap={5}>
<TextMedium lighter bold>
QueryNode blockheight:{' '}
</TextMedium>
<TextMedium lighter>t('qnBlockheight')</TextMedium>
<TextMedium lighter>{formatTokenValue(queryNodeState?.indexerHead)}</TextMedium>
</ColumnGapBlock>
</SettingsInformation>
Expand Down
5 changes: 4 additions & 1 deletion packages/ui/src/services/i18n/dict/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
"networkDetails": "Network Details",
"networkAddress": "Network: ",
"QueryNodeAddress": "Query Node: ",
"faucet": "Faucet: "
"faucet": "Faucet: ",
"chainInfo": "Chain Information",
"rpcBlockheight": "RPC Block Height: ",
"qnBlockheight": "Query Node Block Height: "
}

2 comments on commit ab2e1c4

@vercel
Copy link

@vercel vercel bot commented on ab2e1c4 Dec 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on ab2e1c4 Dec 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pioneer-2 – ./

pioneer-2-joystream.vercel.app
pioneer-2-git-dev-joystream.vercel.app
pioneer-2.vercel.app

Please sign in to comment.