diff --git a/packages/apps-config/src/ui/general/index.ts b/packages/apps-config/src/ui/general/index.ts index c66be88156..847e58ff97 100644 --- a/packages/apps-config/src/ui/general/index.ts +++ b/packages/apps-config/src/ui/general/index.ts @@ -28,10 +28,10 @@ const chainColors: Record = [ // overrides based on the actual software node type (all '-' converted to ' ') const nodeColors: Record = [ ['centrifuge chain', nodeCentrifuge], - ['edgeware node', nodeEdgeware], - ['node template', emptyColor], - ['parity polkadot', emptyColor], - ['substrate node', emptyColor] + ['edgeware node', nodeEdgeware] + // ['node template', emptyColor], + // ['parity polkadot', emptyColor], + // ['substrate node', emptyColor] ].reduce((colors, [node, color]): Record => ({ ...colors, [node.toLowerCase().replace(/-/g, ' ')]: color diff --git a/packages/apps/public/locales/zh/app-staking.json b/packages/apps/public/locales/zh/app-staking.json index 90ed80c48c..f39aeb1485 100644 --- a/packages/apps/public/locales/zh/app-staking.json +++ b/packages/apps/public/locales/zh/app-staking.json @@ -12,6 +12,7 @@ "controller": "控制器", "Stop Nominating": "停止提名", "Stop Validating": "停止验证", + "Stop": "停止", "Set Session Key": "设置会话key", "Validate": "验证", "Nominate": "提名", diff --git a/packages/apps/src/Apps.tsx b/packages/apps/src/Apps.tsx index ac24539623..c9b82aff1e 100644 --- a/packages/apps/src/Apps.tsx +++ b/packages/apps/src/Apps.tsx @@ -7,7 +7,7 @@ import { BareProps as Props } from '@polkadot/react-components/types'; import React, { useCallback, useMemo, useState } from 'react'; import store from 'store'; import styled from 'styled-components'; -import { defaultColor, chainColors, emptyColor, nodeColors } from '@polkadot/apps-config/ui/general'; +import { defaultColor, chainColors, nodeColors } from '@polkadot/apps-config/ui/general'; import GlobalStyle from '@polkadot/react-components/styles'; import { useApi } from '@polkadot/react-hooks'; import Signer from '@polkadot/react-signer'; @@ -41,8 +41,8 @@ function Apps ({ className }: Props): React.ReactElement { ...store.get('sidebar', {}), isMenu: window.innerWidth < SIDEBAR_MENU_THRESHOLD }); - const uiHighlight = useMemo((): string => { - return chainColors[sanitize(systemChain)] || nodeColors[sanitize(systemName)] || emptyColor; + const uiHighlight = useMemo((): string | undefined => { + return chainColors[sanitize(systemChain)] || nodeColors[sanitize(systemName)]; }, [systemChain, systemName]); const { isCollapsed, isMenu, isMenuOpen } = sidebar; diff --git a/packages/page-accounts/src/Account.tsx b/packages/page-accounts/src/Account.tsx index 50c1abb30f..86c9e650c5 100644 --- a/packages/page-accounts/src/Account.tsx +++ b/packages/page-accounts/src/Account.tsx @@ -335,7 +335,6 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr