浏览代码

Remove Add Via QR, Proxied and ? tab from Accounts, remove ? tab from Staking

Edvin 4 年之前
父节点
当前提交
0d713565f6

+ 1 - 0
pioneer/packages/apps/public/locales/en/index.json

@@ -24,6 +24,7 @@
   "joy-election.json",
   "joy-media.json",
   "joy-members.json",
+  "joy-proposals.json",
   "joy-roles.json",
   "joy-utils.json",
   "react-components.json",

+ 4 - 1
pioneer/packages/apps/public/locales/en/joy-proposals.json

@@ -1 +1,4 @@
-{}
+{
+  "Current": "Current",
+  "Historical": "Historical"
+}

+ 2 - 0
pioneer/packages/apps/public/locales/en/translation.json

@@ -125,6 +125,7 @@
   "Create and backup account": "",
   "Crypto not detected": "",
   "Cryptography used to create this signature. It is auto-detected on valid signatures.": "",
+  "Current": "",
   "Current account nonce: {{accountNonce}}": "",
   "Current prime member, default voting": "",
   "Current society head, exempt": "",
@@ -184,6 +185,7 @@
   "Genesis Hash refers to initial state of the chain, it cannot be changed once the chain is launched": "",
   "Grandpa": "",
   "Hash data": "",
+  "Historical": "",
   "I'm Online": "",
   "If the recipient account is new, the balance needs to be more than the existential deposit. Likewise if the sending account balance drops below the same value, the account will be removed from the state.": "",
   "If this proposal is passed, the changes will be applied via dispatch and the deposit returned.": "",

+ 4 - 4
pioneer/packages/page-accounts/src/Accounts/index.tsx

@@ -205,11 +205,11 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen
           label={t<string>('Restore JSON')}
           onClick={toggleImport}
         />
-        <Button
+        {/* <Button
           icon='qrcode'
           label={t<string>('Add via Qr')}
           onClick={toggleQr}
-        />
+        /> */}
         {isLedger() && (
           <>
             <Button
@@ -225,12 +225,12 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen
           label={t<string>('Multisig')}
           onClick={toggleMultisig}
         />
-        <Button
+        {/* <Button
           icon='plus'
           isDisabled={!api.tx.proxy}
           label={t<string>('Proxied')}
           onClick={toggleProxy}
-        />
+        /> */}
       </Button.Group>
       <Table
         empty={t<string>("You don't have any accounts. Some features are currently hidden and will only become available once you have accounts.")}

+ 3 - 3
pioneer/packages/page-accounts/src/index.tsx

@@ -7,10 +7,10 @@ import { AppProps as Props } from '@polkadot/react-components/types';
 import React, { useMemo } from 'react';
 import { Route, Switch } from 'react-router';
 import { useAccounts, useIpfs } from '@polkadot/react-hooks';
-import { HelpOverlay, Tabs } from '@polkadot/react-components';
+import { Tabs } from '@polkadot/react-components'; // HelpOverlay
 import { MemoForm } from '@polkadot/joy-utils/react/components/Memo';
 
-import basicMd from './md/basic.md';
+// import basicMd from './md/basic.md';
 import { useTranslation } from './translate';
 import useCounter from './useCounter';
 import Accounts from './Accounts';
@@ -49,7 +49,7 @@ function AccountsApp ({ basePath, onStatusChange }: Props): React.ReactElement<P
 
   return (
     <main className='accounts--App'>
-      <HelpOverlay md={basicMd as string} />
+      {/* <HelpOverlay md={basicMd as string} /> */}
       <header>
         <Tabs
           basePath={basePath}

+ 3 - 3
pioneer/packages/page-staking/src/index.tsx

@@ -10,12 +10,12 @@ import React, { useEffect, useMemo, useState } from 'react';
 import { Route, Switch } from 'react-router';
 import { useLocation } from 'react-router-dom';
 import styled from 'styled-components';
-import { HelpOverlay } from '@polkadot/react-components';
+// import { HelpOverlay } from '@polkadot/react-components';
 import Tabs from '@polkadot/react-components/Tabs';
 import { useAccounts, useApi, useCall, useFavorites, useOwnStashInfos, useStashIds } from '@polkadot/react-hooks';
 import { isFunction } from '@polkadot/util';
 
-import basicMd from './md/basic.md';
+// import basicMd from './md/basic.md';
 import Actions from './Actions';
 import Overview from './Overview';
 import Payouts from './Payouts';
@@ -99,7 +99,7 @@ function StakingApp ({ basePath, className = '' }: Props): React.ReactElement<Pr
 
   return (
     <main className={`staking--App ${className}`}>
-      <HelpOverlay md={basicMd as string} />
+      {/* <HelpOverlay md={basicMd as string} /> */}
       <header>
         <Tabs
           basePath={basePath}