From e583b041a07eecd4063c8352d4e05bda9024a33b Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Wed, 9 Oct 2019 17:32:41 +0400 Subject: [PATCH] Add etherscan/copy buttons to edit owner --- .../ManageOwners/EditOwnerModal/index.jsx | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/routes/safe/components/Settings/ManageOwners/EditOwnerModal/index.jsx b/src/routes/safe/components/Settings/ManageOwners/EditOwnerModal/index.jsx index 0f9bddb0..ac1e6b37 100644 --- a/src/routes/safe/components/Settings/ManageOwners/EditOwnerModal/index.jsx +++ b/src/routes/safe/components/Settings/ManageOwners/EditOwnerModal/index.jsx @@ -3,10 +3,10 @@ import React from 'react' import { withSnackbar } from 'notistack' import { withStyles } from '@material-ui/core/styles' import Close from '@material-ui/icons/Close' -import OpenInNew from '@material-ui/icons/OpenInNew' import IconButton from '@material-ui/core/IconButton' +import EtherscanBtn from '~/components/EtherscanBtn' +import CopyBtn from '~/components/CopyBtn' import Row from '~/components/layout/Row' -import Link from '~/components/layout/Link' import Block from '~/components/layout/Block' import GnoForm from '~/components/forms/GnoForm' import Button from '~/components/layout/Button' @@ -18,19 +18,13 @@ import Identicon from '~/components/Identicon' import { composeValidators, required, minMaxLength } from '~/components/forms/validator' import { getNotificationsFromTxType, showSnackbar } from '~/logic/notifications' import { TX_NOTIFICATION_TYPES } from '~/logic/safe/transactions' -import { getEtherScanLink } from '~/logic/wallets/getWeb3' import Modal from '~/components/Modal' import { styles } from './style' -import { secondary } from '~/theme/variables' +import { sm } from '~/theme/variables' export const RENAME_OWNER_INPUT_TEST_ID = 'rename-owner-input' export const SAVE_OWNER_CHANGES_BTN_TEST_ID = 'save-owner-changes-btn' -const openIconStyle = { - height: '16px', - color: secondary, -} - type Props = { onClose: () => void, classes: Object, @@ -100,12 +94,11 @@ const EditOwnerComponent = ({ - + {ownerAddress} - - - + + @@ -114,7 +107,14 @@ const EditOwnerComponent = ({ -