diff --git a/package.json b/package.json index 0f748795..a71c96e5 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "dependencies": { "@gnosis.pm/safe-contracts": "^1.0.0", "@gnosis.pm/util-contracts": "2.0.4", - "@material-ui/core": "4.6.0", + "@material-ui/core": "4.6.1", "@material-ui/icons": "4.5.1", "@portis/web3": "^2.0.0-beta.45", "@testing-library/jest-dom": "4.2.3", @@ -57,7 +57,7 @@ "react-dom": "16.11.0", "react-final-form": "6.3.0", "react-final-form-listeners": "^1.0.2", - "react-hot-loader": "4.12.16", + "react-hot-loader": "4.12.17", "react-qr-reader": "^2.2.1", "react-redux": "7.1.3", "react-router-dom": "5.1.2", @@ -116,7 +116,7 @@ "detect-port": "^1.3.0", "eslint": "5.16.0", "eslint-config-airbnb": "18.0.1", - "eslint-plugin-flowtype": "4.3.0", + "eslint-plugin-flowtype": "4.4.1", "eslint-plugin-import": "2.18.2", "eslint-plugin-jest": "23.0.3", "eslint-plugin-jsx-a11y": "6.2.3", @@ -124,7 +124,7 @@ "ethereumjs-abi": "0.6.8", "extract-text-webpack-plugin": "^4.0.0-beta.0", "file-loader": "4.2.0", - "flow-bin": "0.111.3", + "flow-bin": "0.112.0", "fs-extra": "8.1.0", "html-loader": "^0.5.5", "html-webpack-plugin": "^3.2.0", @@ -141,7 +141,7 @@ "storybook-host": "5.1.0", "storybook-router": "^0.3.4", "style-loader": "1.0.0", - "truffle": "5.0.44", + "truffle": "5.1.0", "truffle-contract": "4.0.31", "truffle-solidity-loader": "0.1.32", "uglifyjs-webpack-plugin": "2.2.0", diff --git a/src/components/ConnectButton/index.jsx b/src/components/ConnectButton/index.jsx index 7665536a..02254de8 100644 --- a/src/components/ConnectButton/index.jsx +++ b/src/components/ConnectButton/index.jsx @@ -1,6 +1,5 @@ // @flow import React from 'react' -import { connect } from 'react-redux' import Web3Connect from 'web3connect' import Torus from '@toruslabs/torus-embed' import WalletConnectProvider from '@walletconnect/web3-provider' @@ -54,15 +53,11 @@ web3Connect.on('connect', (provider: any) => { }) type Props = { - registerProvider: Function, enqueueSnackbar: Function, closeSnackbar: Function, } -const ConnectButton = ({ - registerProvider, ...props -}: Props) => ( - +const ConnectButton = (props: Props) => (