diff --git a/src/components/Header/component/UserDetails/index.jsx b/src/components/Header/component/UserDetails/index.jsx index 5ffc5fcb..f334abe3 100644 --- a/src/components/Header/component/UserDetails/index.jsx +++ b/src/components/Header/component/UserDetails/index.jsx @@ -4,12 +4,14 @@ import OpenInNew from '@material-ui/icons/OpenInNew' import { withStyles } from '@material-ui/core/styles' import Paragraph from '~/components/layout/Paragraph' import Button from '~/components/layout/Button' +import List from '@material-ui/core/List' import Identicon from '~/components/Identicon' -import Col from '~/components/layout/Col' +import Bold from '~/components/layout/Bold' +import Hairline from '~/components/layout/Hairline' import Row from '~/components/layout/Row' import Spacer from '~/components/Spacer' -import { md } from '~/theme/variables' -import Details from './Details' +import { md, lg, background } from '~/theme/variables' +import { upperFirst } from '~/utils/css' type Props = { provider: string, @@ -20,43 +22,99 @@ type Props = { } const openIconStyle = { - height: '14px', + height: '16px', + color: '#467ee5', } const styles = () => ({ root: { backgroundColor: 'white', - padding: md, + padding: 0, + boxShadow: '0 0 10px 0 rgba(33, 48, 77, 0.1)', + }, + container: { + padding: `${md} 12px`, + }, + identicon: { + justifyContent: 'center', + padding: `0 ${md}`, }, user: { alignItems: 'center', - border: '1px solid grey', - padding: '10px', - backgroundColor: '#f1f1f1', + backgroundColor: background, + padding: md, + }, + details: { + padding: `0 ${lg}`, + height: '20px', + alignItems: 'center', }, address: { flexGrow: 1, textAlign: 'center', }, + disconnect: { + padding: `${md} 32px`, + }, }) const UserDetails = ({ provider, connected, network, userAddress, classes, -}: Props) => ( -
- -
- - - - - {userAddress} - - - - - -
-) +}: Props) => { + const status = connected ? 'Connected' : 'Not connected' + + return ( + +
+ + + + + {userAddress} + + +
+ + + Status + + + + {status} + + + + + + Client + + + + {upperFirst(provider)} + + + + + + Netowrk + + + {upperFirst(network)} + + + + + + +
+ ) +} export default withStyles(styles)(UserDetails)