diff --git a/package.json b/package.json index 41b18f6965..42dfe5e61e 100644 --- a/package.json +++ b/package.json @@ -12,15 +12,15 @@ "packages/*" ], "resolutions": { - "@polkadot/api": "^3.4.2-1", - "@polkadot/api-contract": "^3.4.2-1", + "@polkadot/api": "^3.4.2-3", + "@polkadot/api-contract": "^3.4.2-3", "@polkadot/keyring": "^5.2.3", "@polkadot/networks": "^5.2.3", - "@polkadot/types": "^3.4.2-1", + "@polkadot/types": "^3.4.2-3", "@polkadot/util": "^5.2.3", "@polkadot/util-crypto": "^5.2.3", "@polkadot/wasm-crypto": "^3.1.1", - "@polkadot/x-rxjs": "^3.4.2-1", + "@polkadot/x-rxjs": "^3.4.2-3", "babel-core": "^7.0.0-bridge.0", "styled-components": "^5.2.0", "typescript": "^4.1.3" diff --git a/packages/page-accounts/src/modals/IdentitySub.tsx b/packages/page-accounts/src/modals/IdentitySub.tsx index f5845d3e21..543d85e5e3 100644 --- a/packages/page-accounts/src/modals/IdentitySub.tsx +++ b/packages/page-accounts/src/modals/IdentitySub.tsx @@ -1,6 +1,7 @@ // Copyright 2017-2021 @polkadot/app-accounts authors & contributors // SPDX-License-Identifier: Apache-2.0 +import type { TFunction } from 'i18next'; import type { Data, Option, Vec } from '@polkadot/types'; import type { AccountId, Balance } from '@polkadot/types/interfaces'; import type { ITuple } from '@polkadot/types/types'; @@ -25,7 +26,7 @@ interface SubProps { name: string; setAddress: (index: number, value: string) => void; setName: (index: number, value: string) => void; - t: (key: string, opts?: { replace: Record }) => string; + t: TFunction; } function extractInfo ([[ids], opts]: [[string[]], Option>[]]): [string, string][] { @@ -60,7 +61,7 @@ function IdentitySub ({ address, index, name, setAddress, setName, t }: SubProps ('address {{index}}', { replace: { index: index + 1 } })} onChange={_setAddress} /> @@ -69,7 +70,7 @@ function IdentitySub ({ address, index, name, setAddress, setName, t }: SubProps defaultValue={name} isError={!name} isFull - label={t('sub name')} + label={t('sub name')} onChange={_setName} /> diff --git a/packages/page-contracts/package.json b/packages/page-contracts/package.json index 9bd7e23b3c..90b101253d 100644 --- a/packages/page-contracts/package.json +++ b/packages/page-contracts/package.json @@ -10,6 +10,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api-contract": "^3.4.2-1" + "@polkadot/api-contract": "^3.4.2-3" } } diff --git a/packages/page-parachains/src/Overview/Actions.tsx b/packages/page-parachains/src/Overview/Actions.tsx index 2f3fa98be3..8d2f95fb33 100644 --- a/packages/page-parachains/src/Overview/Actions.tsx +++ b/packages/page-parachains/src/Overview/Actions.tsx @@ -4,7 +4,7 @@ import React from 'react'; import { Button } from '@polkadot/react-components'; -import { useApi, useToggle } from '@polkadot/react-hooks'; +import { useAccounts, useApi, useToggle } from '@polkadot/react-hooks'; import Propose from '../modals/Propose'; import { useTranslation } from '../translate'; @@ -16,6 +16,7 @@ interface Props { function Actions (): React.ReactElement { const { t } = useTranslation(); const { api } = useApi(); + const { hasAccounts } = useAccounts(); const [showPropose, togglePropose] = useToggle(); return ( @@ -24,7 +25,7 @@ function Actions (): React.ReactElement { {api.query.proposeParachain && (