diff --git a/src/components/Header/component/Layout.jsx b/src/components/Header/component/Layout.jsx index 7afbb088..d253bb7e 100644 --- a/src/components/Header/component/Layout.jsx +++ b/src/components/Header/component/Layout.jsx @@ -1,30 +1,106 @@ // @flow -import React from 'react' +import * as React from 'react' +import { withStyles } from '@material-ui/core/styles' +import ExpansionPanel from '@material-ui/core/ExpansionPanel' +import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails' +import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary' +import ExpansionPanelActions from '@material-ui/core/ExpansionPanelActions' +import ExpandMoreIcon from '@material-ui/icons/ExpandMore' +import Divider from '@material-ui/core/Divider' +import Paragraph from '~/components/layout/Paragraph' import Col from '~/components/layout/Col' import Img from '~/components/layout/Img' +import Button from '~/components/layout/Button' import Refresh from '~/components/Refresh' import Row from '~/components/layout/Row' - +import Spacer from '~/components/Spacer' import Connected from './Connected' -import NotConnected from './NotConnected' -const logo = require('../assets/gnosis_logo.svg') +const logo = require('../assets/gnosis-safe-logo.svg') type Props = { provider: string, reloadWallet: Function, + classes: Object, } -const Header = ({ provider, reloadWallet }: Props) => ( - - - Gnosis Safe - - - { provider ? : } - - - -) +const styles = theme => ({ + root: { + width: '100%', + }, + logo: { + flexBasis: '125px', + }, + provider: { + flexBasis: '130px', + display: 'flex', + flexDirection: 'column', + justifyContent: 'center', + }, + heading: { + fontSize: theme.typography.pxToRem(15), + }, + secondaryHeading: { + fontSize: theme.typography.pxToRem(15), + color: theme.palette.text.secondary, + }, + icon: { + verticalAlign: 'bottom', + height: 20, + width: 20, + }, + details: { + alignItems: 'center', + }, + column: { + flexBasis: '33.33%', + }, + helper: { + borderLeft: `2px solid ${theme.palette.divider}`, + padding: `${theme.spacing.unit}px ${theme.spacing.unit * 2}px`, + }, + link: { + color: theme.palette.primary.main, + textDecoration: 'none', + '&:hover': { + textDecoration: 'underline', + }, + }, +}) -export default Header +const Header = ({ provider, reloadWallet, classes }: Props) => { + const providerText = provider ? `${provider} [Rinkeby]` : 'Not connected' + + return ( + + + }> + + + Gnosis Safe + + + + {providerText} + 0x873faa....d30aaa + + + + { provider && + + + + + + + + + + } + + + + ) +} + +export default withStyles(styles)(Header) diff --git a/src/components/Header/component/NotConnected/index.jsx b/src/components/Header/component/NotConnected/index.jsx deleted file mode 100644 index f2c75156..00000000 --- a/src/components/Header/component/NotConnected/index.jsx +++ /dev/null @@ -1,5 +0,0 @@ -// @flow -import React from 'react' -import Span from '~/components/layout/Span' - -export default () => Not Connected