safe info in send funds modal
This commit is contained in:
parent
1d25492e68
commit
53c8a8f5ad
|
@ -10,8 +10,11 @@ import Row from '~/components/layout/Row'
|
||||||
import Link from '~/components/layout/Link'
|
import Link from '~/components/layout/Link'
|
||||||
import Col from '~/components/layout/Col'
|
import Col from '~/components/layout/Col'
|
||||||
import Block from '~/components/layout/Block'
|
import Block from '~/components/layout/Block'
|
||||||
|
import Bold from '~/components/layout/Bold'
|
||||||
import Hairline from '~/components/layout/Hairline'
|
import Hairline from '~/components/layout/Hairline'
|
||||||
import { lg, sm, secondary } from '~/theme/variables'
|
import {
|
||||||
|
lg, md, sm, secondary, xs,
|
||||||
|
} from '~/theme/variables'
|
||||||
import { copyToClipboard } from '~/utils/clipboard'
|
import { copyToClipboard } from '~/utils/clipboard'
|
||||||
|
|
||||||
const styles = () => ({
|
const styles = () => ({
|
||||||
|
@ -28,6 +31,19 @@ const styles = () => ({
|
||||||
height: '35px',
|
height: '35px',
|
||||||
width: '35px',
|
width: '35px',
|
||||||
},
|
},
|
||||||
|
formContainer: {
|
||||||
|
padding: `${md} ${lg}`,
|
||||||
|
},
|
||||||
|
balanceContainer: {
|
||||||
|
fontSize: '12px',
|
||||||
|
lineHeight: 1.08,
|
||||||
|
letterSpacing: -0.5,
|
||||||
|
backgroundColor: '#eae9ef',
|
||||||
|
width: 'fit-content',
|
||||||
|
padding: '6px',
|
||||||
|
marginTop: xs,
|
||||||
|
borderRadius: '3px',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const openIconStyle = {
|
const openIconStyle = {
|
||||||
|
@ -43,7 +59,7 @@ type Props = {
|
||||||
safeName: string,
|
safeName: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
const Send = ({
|
const SendFunds = ({
|
||||||
classes, onClose, safeAddress, etherScanLink, safeName,
|
classes, onClose, safeAddress, etherScanLink, safeName,
|
||||||
}: Props) => (
|
}: Props) => (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
|
@ -56,21 +72,33 @@ const Send = ({
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Row>
|
</Row>
|
||||||
<Hairline />
|
<Hairline />
|
||||||
|
<Block className={classes.formContainer}>
|
||||||
<Row>
|
<Row>
|
||||||
<Col layout="column" middle="xs">
|
<Col xs={1}>
|
||||||
<Identicon address={safeAddress} diameter={32} />
|
<Identicon address={safeAddress} diameter={32} />
|
||||||
</Col>
|
</Col>
|
||||||
<Col layout="column">
|
<Col xs={11} layout="column">
|
||||||
<Paragraph weight="bolder">{safeName}</Paragraph>
|
<Paragraph weight="bolder" noMargin style={{lineHeight: 1}}>
|
||||||
<Paragraph weight="bolder" onClick={copyToClipboard}>
|
{safeName}
|
||||||
|
</Paragraph>
|
||||||
|
<Paragraph weight="bolder" onClick={copyToClipboard} noMargin>
|
||||||
{safeAddress}
|
{safeAddress}
|
||||||
<Link to={etherScanLink} target="_blank">
|
<Link to={etherScanLink} target="_blank">
|
||||||
<OpenInNew style={openIconStyle} />
|
<OpenInNew style={openIconStyle} />
|
||||||
</Link>
|
</Link>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
|
<Block className={classes.balanceContainer} margin="lg">
|
||||||
|
<Paragraph noMargin>
|
||||||
|
Balance:
|
||||||
|
{' '}
|
||||||
|
<Bold>1.349 ETH</Bold>
|
||||||
|
</Paragraph>
|
||||||
|
</Block>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
<Hairline />
|
||||||
|
</Block>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
|
|
||||||
export default withStyles(styles)(Send)
|
export default withStyles(styles)(SendFunds)
|
||||||
|
|
|
@ -111,7 +111,7 @@ export default createMuiTheme({
|
||||||
color: secondary,
|
color: secondary,
|
||||||
order: 0,
|
order: 0,
|
||||||
marginTop: '0px',
|
marginTop: '0px',
|
||||||
backgroundColor: 'EAE9EF',
|
backgroundColor: '#EAE9EF',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
MuiInput: {
|
MuiInput: {
|
||||||
|
|
Loading…
Reference in New Issue