From 89dd6f2bdb4f40e077f40ea1c6de478784ffd269 Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Mon, 9 Sep 2019 14:21:57 +0400 Subject: [PATCH] Make 'Remove Safe' and 'Manage tokens' positioning the same so they dont jump --- package.json | 26 +- src/components/layout/ButtonLink/index.jsx | 4 +- src/routes/safe/components/Settings/index.jsx | 8 +- src/routes/safe/components/Settings/style.js | 13 +- yarn.lock | 312 +++++++++++++++--- 5 files changed, 285 insertions(+), 78 deletions(-) diff --git a/package.json b/package.json index d221222a..4708563d 100644 --- a/package.json +++ b/package.json @@ -31,14 +31,14 @@ "dependencies": { "@gnosis.pm/safe-contracts": "^1.0.0", "@gnosis.pm/util-contracts": "2.0.1", - "@material-ui/core": "4.4.0", - "@material-ui/icons": "4.2.1", + "@material-ui/core": "4.4.1", + "@material-ui/icons": "4.4.1", "@testing-library/jest-dom": "4.1.0", "@welldone-software/why-did-you-render": "3.3.3", "axios": "0.19.0", "bignumber.js": "9.0.0", "connected-react-router": "6.5.2", - "date-fns": "2.0.1", + "date-fns": "2.1.0", "ethereum-ens": "0.7.8", "final-form": "4.18.5", "history": "^4.7.2", @@ -64,11 +64,11 @@ "web3": "1.2.1" }, "devDependencies": { - "@babel/cli": "7.5.5", - "@babel/core": "7.5.5", + "@babel/cli": "7.6.0", + "@babel/core": "7.6.0", "@babel/plugin-proposal-class-properties": "7.5.5", - "@babel/plugin-proposal-decorators": "7.4.4", - "@babel/plugin-proposal-do-expressions": "7.5.0", + "@babel/plugin-proposal-decorators": "7.6.0", + "@babel/plugin-proposal-do-expressions": "7.6.0", "@babel/plugin-proposal-export-default-from": "7.5.2", "@babel/plugin-proposal-export-namespace-from": "7.5.2", "@babel/plugin-proposal-function-bind": "^7.0.0", @@ -77,15 +77,15 @@ "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0", "@babel/plugin-proposal-nullish-coalescing-operator": "7.4.4", "@babel/plugin-proposal-numeric-separator": "^7.0.0", - "@babel/plugin-proposal-optional-chaining": "^7.0.0", + "@babel/plugin-proposal-optional-chaining": "7.6.0", "@babel/plugin-proposal-pipeline-operator": "7.5.0", "@babel/plugin-proposal-throw-expressions": "^7.0.0", "@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/plugin-syntax-import-meta": "^7.0.0", "@babel/plugin-transform-member-expression-literals": "^7.2.0", "@babel/plugin-transform-property-literals": "^7.2.0", - "@babel/polyfill": "7.4.4", - "@babel/preset-env": "7.5.5", + "@babel/polyfill": "7.6.0", + "@babel/preset-env": "7.6.0", "@babel/preset-flow": "^7.0.0-beta.40", "@babel/preset-react": "^7.0.0-beta.40", "@sambego/storybook-state": "^1.0.7", @@ -109,13 +109,13 @@ "eslint-config-airbnb": "18.0.1", "eslint-plugin-flowtype": "4.3.0", "eslint-plugin-import": "2.18.2", - "eslint-plugin-jest": "22.16.0", + "eslint-plugin-jest": "22.17.0", "eslint-plugin-jsx-a11y": "6.2.3", "eslint-plugin-react": "7.14.3", "ethereumjs-abi": "0.6.8", "extract-text-webpack-plugin": "^4.0.0-beta.0", "file-loader": "4.2.0", - "flow-bin": "0.106.3", + "flow-bin": "0.107.0", "fs-extra": "8.1.0", "html-loader": "^0.5.5", "html-webpack-plugin": "^3.0.4", @@ -139,7 +139,7 @@ "url-loader": "^2.1.0", "webpack": "4.39.3", "webpack-bundle-analyzer": "3.4.1", - "webpack-cli": "3.3.7", + "webpack-cli": "3.3.8", "webpack-dev-server": "3.8.0", "webpack-manifest-plugin": "^2.0.0-rc.2" } diff --git a/src/components/layout/ButtonLink/index.jsx b/src/components/layout/ButtonLink/index.jsx index 1f7d9593..05290dd5 100644 --- a/src/components/layout/ButtonLink/index.jsx +++ b/src/components/layout/ButtonLink/index.jsx @@ -12,6 +12,7 @@ type Props = { weight?: 'light' | 'regular' | 'bolder' | 'bold', color?: 'soft' | 'medium' | 'dark' | 'white' | 'fancy' | 'primary' | 'secondary' | 'warning' | 'disabled' | 'error', testId?: string, + className?: string, } const GnoButtonLink = ({ @@ -20,7 +21,8 @@ const GnoButtonLink = ({ weight = 'regular', color = 'secondary', testId = '', + className = '', ...props -}: Props) =>