update merfe

This commit is contained in:
Mati Dastugue 2021-06-01 10:59:31 -03:00
commit 2d6cbb21f5
2 changed files with 24 additions and 7 deletions

View File

@ -21,6 +21,21 @@ import { useStateHandler } from 'src/logic/hooks/useStateHandler'
import SafeLogo from '../assets/gnosis-safe-multisig-logo.svg' import SafeLogo from '../assets/gnosis-safe-multisig-logo.svg'
import { NETWORK_NAMES } from 'src/utils/constants' import { NETWORK_NAMES } from 'src/utils/constants'
import { getNetworkInfo } from 'src/config' import { getNetworkInfo } from 'src/config'
import styled from 'styled-components'
const StyledDivider = styled(Divider)`
margin: 0;
`
const StyledLink = styled.a`
margin: 0;
text-decoration: none;
display: block;
padding: 12px 0;
:hover {
background-color: ${({ theme }) => theme.colors.background};
}
`
const styles = () => ({ const styles = () => ({
root: { root: {
@ -61,9 +76,8 @@ const styles = () => ({
borderRadius: sm, borderRadius: sm,
boxShadow: '0 0 10px 0 rgba(33, 48, 77, 0.1)', boxShadow: '0 0 10px 0 rgba(33, 48, 77, 0.1)',
marginTop: '11px', marginTop: '11px',
minWidth: '200px', minWidth: '180px',
paddingTop: md, padding: '0',
paddingBottom: md,
}, },
}) })
@ -72,6 +86,7 @@ const Layout = ({ classes, providerDetails, providerInfo }) => {
const { clickAway: clickAwayNetworks, open: openNetworks, toggle: toggleNetworks } = useStateHandler() const { clickAway: clickAwayNetworks, open: openNetworks, toggle: toggleNetworks } = useStateHandler()
const networkInfo = getNetworkInfo() const networkInfo = getNetworkInfo()
console.log(networkInfo) console.log(networkInfo)
return ( return (
<Row className={classes.summary}> <Row className={classes.summary}>
<Col className={classes.logo} middle="xs" start="xs"> <Col className={classes.logo} middle="xs" start="xs">
@ -124,8 +139,10 @@ const Layout = ({ classes, providerDetails, providerInfo }) => {
<List className={classes.network} component="div"> <List className={classes.network} component="div">
{NETWORK_NAMES.map((network) => ( {NETWORK_NAMES.map((network) => (
<React.Fragment key={network.name}> <React.Fragment key={network.name}>
<NetworkLabel networkName={network.name} /> <StyledLink href="#">
<Divider /> <NetworkLabel networkName={network.name} />
</StyledLink>
<StyledDivider />
</React.Fragment> </React.Fragment>
))} ))}
</List> </List>

View File

@ -16,7 +16,7 @@ const styles = () => ({
height: '100%', height: '100%',
[`@media (min-width: ${screenSm}px)`]: { [`@media (min-width: ${screenSm}px)`]: {
flexBasis: '200px', flexBasis: '180px',
marginRight: '20px', marginRight: '20px',
}, },
}, },
@ -25,7 +25,7 @@ const styles = () => ({
cursor: 'pointer', cursor: 'pointer',
display: 'flex', display: 'flex',
flex: '1 1 auto', flex: '1 1 auto',
padding: sm, /* padding: sm, */
justifyContent: 'space-between', justifyContent: 'space-between',
[`@media (min-width: ${screenSm}px)`]: { [`@media (min-width: ${screenSm}px)`]: {
paddingRight: sm, paddingRight: sm,