From eea8cc681edab41a26f0df251ddd4bc19af24519 Mon Sep 17 00:00:00 2001 From: apanizo Date: Thu, 8 Nov 2018 09:56:01 +0100 Subject: [PATCH] Adding custom trash icon when remvoing owners #73 --- src/routes/open/assets/trash.svg | 1 + .../open/components/SafeOwnersForm/index.jsx | 20 ++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 src/routes/open/assets/trash.svg diff --git a/src/routes/open/assets/trash.svg b/src/routes/open/assets/trash.svg new file mode 100644 index 00000000..46b95b59 --- /dev/null +++ b/src/routes/open/assets/trash.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/routes/open/components/SafeOwnersForm/index.jsx b/src/routes/open/components/SafeOwnersForm/index.jsx index a8dc027f..297327e4 100644 --- a/src/routes/open/components/SafeOwnersForm/index.jsx +++ b/src/routes/open/components/SafeOwnersForm/index.jsx @@ -7,9 +7,8 @@ import { required, composeValidators, uniqueAddress, mustBeEthereumAddress } fro import Block from '~/components/layout/Block' import Button from '~/components/layout/Button' import Row from '~/components/layout/Row' +import Img from '~/components/layout/Img' import Col from '~/components/layout/Col' -import IconButton from '@material-ui/core/IconButton' -import Delete from '@material-ui/icons/Delete' import InputAdornment from '@material-ui/core/InputAdornment' import CheckCircle from '@material-ui/icons/CheckCircle' import { getOwnerNameBy, getOwnerAddressBy } from '~/routes/open/components/fields' @@ -19,6 +18,8 @@ import { getAccountsFrom } from '~/routes/open/utils/safeDataExtractor' import Hairline from '~/components/layout/Hairline' import { md, lg, sm } from '~/theme/variables' +const trash = require('../../assets/trash.svg') + type Props = { classes: Object, otherAccounts: string[], @@ -57,6 +58,14 @@ const styles = () => ({ color: '#03AE60', height: '20px', }, + remove: { + height: '56px', + marginTop: '12px', + maxWidth: '50px', + '&:hover': { + cursor: 'pointer', + }, + }, }) const getAddressValidators = (addresses: string[], position: number) => { @@ -159,12 +168,9 @@ class SafeOwners extends React.Component { text="Owner Address" /> - + { index > 0 && - - - {/* Network */} - + Delete }