diff --git a/packages/app-accounts/src/index.js b/packages/app-accounts/src/index.js index 9cfcdc5ee0..1d922ead58 100644 --- a/packages/app-accounts/src/index.js +++ b/packages/app-accounts/src/index.js @@ -25,8 +25,7 @@ type State = { } // FIXME React-router would probably be the best route, not home-grown -// flowlint-next-line unclear-type:off -const Components: { [Actions]: React$ComponentType } = { +const Components: { [Actions]: React$ComponentType<{}> } = { 'create': Creator, 'edit': Editor }; diff --git a/packages/app-addresses/src/index.js b/packages/app-addresses/src/index.js index 92cbc64259..58fcbe45cd 100644 --- a/packages/app-addresses/src/index.js +++ b/packages/app-addresses/src/index.js @@ -25,8 +25,7 @@ type State = { } // FIXME React-router would probably be the best route, not home-grown -// flowlint-next-line unclear-type:off -const Components: { [Actions]: React$ComponentType } = { +const Components: { [Actions]: React$ComponentType<{}> } = { 'create': Creator, 'edit': Editor }; diff --git a/packages/app-explorer/package.json b/packages/app-explorer/package.json index 8d14d47a65..a7ac992555 100644 --- a/packages/app-explorer/package.json +++ b/packages/app-explorer/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@babel/runtime": "^7.0.0-beta.47", - "@polkadot/primitives-codec": "^0.16.9", - "@polkadot/primitives-json": "^0.16.9", + "@polkadot/primitives-codec": "^0.16.12", + "@polkadot/primitives-json": "^0.16.12", "@polkadot/ui-app": "^0.6.8", "@polkadot/util-crypto": "^0.22.2" } diff --git a/packages/app-extrinsics/package.json b/packages/app-extrinsics/package.json index c76fe2e0a8..28264679df 100644 --- a/packages/app-extrinsics/package.json +++ b/packages/app-extrinsics/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@babel/runtime": "^7.0.0-beta.47", - "@polkadot/extrinsics-codec": "^0.16.9", + "@polkadot/extrinsics-codec": "^0.16.12", "@polkadot/ui-app": "^0.6.8", "@polkadot/ui-signer": "^0.6.8", "react-dropzone": "^4.2.9" diff --git a/packages/app-rpc/src/index.js b/packages/app-rpc/src/index.js index 5b9dc8b867..e18c0e299b 100644 --- a/packages/app-rpc/src/index.js +++ b/packages/app-rpc/src/index.js @@ -3,7 +3,7 @@ // of the ISC license. See the LICENSE file for details. // @flow -import type { I18nProps } from '@polkadot/ui-app/types'; +import type { BareProps } from '@polkadot/ui-app/types'; import type { QueueProps } from '@polkadot/ui-signer/types'; import './index.css'; @@ -16,7 +16,7 @@ import Signer from '@polkadot/ui-signer'; import Results from './Results'; import Selection from './Selection'; -type Props = I18nProps & {}; +type Props = BareProps & {}; export default function RpcApp ({ className, style }: Props): React$Node { return ( diff --git a/packages/app-storage/src/Selection.js b/packages/app-storage/src/Selection.js index 29852a57aa..5a610f2e5a 100644 --- a/packages/app-storage/src/Selection.js +++ b/packages/app-storage/src/Selection.js @@ -34,10 +34,11 @@ const defaultValue = storage.timestamp.keys.current; let id = -1; class Selection extends React.PureComponent { - state: State = ({ + state: State = { + isValid: true, key: defaultValue, params: [] - }: $Shape); + }; render (): React$Node { const { className, style, t } = this.props; diff --git a/packages/app-toolbox/src/index.js b/packages/app-toolbox/src/index.js index c2c5d13b1e..986a49058f 100644 --- a/packages/app-toolbox/src/index.js +++ b/packages/app-toolbox/src/index.js @@ -26,8 +26,7 @@ type State = { } // FIXME React-router would probably be the best route, not home-grown -// flowlint-next-line unclear-type:off -const Components: { [Actions]: React$ComponentType } = { +const Components: { [Actions]: React$ComponentType<{}> } = { 'hash': Hash, 'sign': Sign, 'verify': Verify diff --git a/packages/apps/src/SideBar/Item.js b/packages/apps/src/SideBar/Item.js index a138a2dd13..9aa7456e90 100644 --- a/packages/apps/src/SideBar/Item.js +++ b/packages/apps/src/SideBar/Item.js @@ -14,9 +14,11 @@ import { NavLink } from 'react-router-dom'; import Icon from '@polkadot/ui-app/Icon'; import Menu from '@polkadot/ui-app/Menu'; -type Props = I18nProps & Route & {}; +type Props = I18nProps & { + route: Route +}; -export default function Item ({ i18n, icon, isExact, name, path = '', t }: Props): React$Node { +export default function Item ({ route: { i18n, icon, isExact, name, path = '' }, t }: Props): React$Node { return ( ) : ( diff --git a/packages/apps/src/types.js b/packages/apps/src/types.js index 24cf40ab5e..4c0458ff98 100644 --- a/packages/apps/src/types.js +++ b/packages/apps/src/types.js @@ -3,12 +3,12 @@ // of the ISC license. See the LICENSE file for details. // @flow +import type { BareProps } from '@polkadot/ui-app/types'; + export type Route = { - // flowlint-next-line unclear-type:off - Component: React$ComponentType, + Component: React$ComponentType, i18n: I18Next$Translate$Config, - // flowlint-next-line unclear-type:off - icon: React$ComponentType | string, + icon: string, isExact: boolean, isHidden: boolean, name: string, diff --git a/packages/ui-app/package.json b/packages/ui-app/package.json index e7c47a7841..3232418c5f 100644 --- a/packages/ui-app/package.json +++ b/packages/ui-app/package.json @@ -12,11 +12,11 @@ }, "dependencies": { "@babel/runtime": "^7.0.0-beta.47", - "@polkadot/extrinsics-substrate": "^0.16.9", - "@polkadot/storage-substrate": "^0.16.9", + "@polkadot/extrinsics-substrate": "^0.16.12", + "@polkadot/storage-substrate": "^0.16.12", "@polkadot/ui-keyring": "^0.6.8", - "@polkadot/ui-react": "^0.13.10", - "@polkadot/ui-react-rx": "^0.13.10", + "@polkadot/ui-react": "^0.13.13", + "@polkadot/ui-react-rx": "^0.13.13", "i18next": "^11.1.1", "i18next-browser-languagedetector": "^2.2.0", "i18next-xhr-backend": "^1.5.1", diff --git a/packages/ui-app/src/Dropdown.js b/packages/ui-app/src/Dropdown.js index e74f87b222..5924efce83 100644 --- a/packages/ui-app/src/Dropdown.js +++ b/packages/ui-app/src/Dropdown.js @@ -11,17 +11,15 @@ import SUIDropdown from 'semantic-ui-react/dist/es/modules/Dropdown'; import classes from './util/classes'; import Labelled from './Labelled'; -type Props = BareProps & { +type Props