Styles when provider is disconnected

This commit is contained in:
apanizo 2018-09-04 17:12:20 +02:00
parent 0c1325627e
commit e73c5b36e4
1 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,43 @@
// @flow
import * as React from 'react'
import { withStyles } from '@material-ui/core/styles'
import Paragraph from '~/components/layout/Paragraph'
import Col from '~/components/layout/Col'
import Img from '~/components/layout/Img'
import { type Open } from '~/components/hoc/OpenHoc'
import { sm, md } from '~/theme/variables'
const connectWallet = require('../../assets/connect-wallet.svg')
type Props = Open & {
classes: Object,
children: Function,
}
const styles = () => ({
network: {
fontFamily: 'Montserrat, sans-serif',
},
account: {
paddingRight: md,
paddingLeft: sm,
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
},
connect: {
letterSpacing: '-0.5px',
},
})
const ProviderDesconnected = ({ classes }: Props) => (
<React.Fragment>
<Img src={connectWallet} height={35} alt="Status connected" />
<Col end="sm" middle="xs" layout="column" className={classes.account}>
<Paragraph size="sm" transform="capitalize" className={classes.network} noMargin bold>Not Connected</Paragraph>
<Paragraph size="sm" color="fancy" className={classes.connect} noMargin>Connect Wallet</Paragraph>
</Col>
</React.Fragment>
)
export default withStyles(styles)(ProviderDesconnected)