Update provider design
This commit is contained in:
parent
ca704f7b47
commit
aa1327c5af
|
@ -63,7 +63,6 @@ const Layout = openHoc(({
|
||||||
<SafeListHeader />
|
<SafeListHeader />
|
||||||
<Divider />
|
<Divider />
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<Divider />
|
|
||||||
<Provider open={open} toggle={toggle} info={providerInfo}>
|
<Provider open={open} toggle={toggle} info={providerInfo}>
|
||||||
{(providerRef) => (
|
{(providerRef) => (
|
||||||
<Popper open={open} anchorEl={providerRef.current} placement="bottom-end">
|
<Popper open={open} anchorEl={providerRef.current} placement="bottom-end">
|
||||||
|
|
|
@ -5,6 +5,7 @@ import IconButton from '@material-ui/core/IconButton'
|
||||||
import ExpandLess from '@material-ui/icons/ExpandLess'
|
import ExpandLess from '@material-ui/icons/ExpandLess'
|
||||||
import ExpandMore from '@material-ui/icons/ExpandMore'
|
import ExpandMore from '@material-ui/icons/ExpandMore'
|
||||||
import Col from '~/components/layout/Col'
|
import Col from '~/components/layout/Col'
|
||||||
|
import Divider from '~/components/layout/Divider'
|
||||||
import { type Open } from '~/components/hoc/OpenHoc'
|
import { type Open } from '~/components/hoc/OpenHoc'
|
||||||
import { sm, md } from '~/theme/variables'
|
import { sm, md } from '~/theme/variables'
|
||||||
|
|
||||||
|
@ -20,7 +21,8 @@ const styles = () => ({
|
||||||
height: '100%',
|
height: '100%',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
flexBasis: '250px',
|
flexBasis: '280px',
|
||||||
|
marginRight: '20px',
|
||||||
},
|
},
|
||||||
provider: {
|
provider: {
|
||||||
padding: `${sm} ${md}`,
|
padding: `${sm} ${md}`,
|
||||||
|
@ -54,12 +56,14 @@ class Provider extends React.Component<Props> {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div ref={this.myRef} className={classes.root}>
|
<div ref={this.myRef} className={classes.root}>
|
||||||
|
<Divider />
|
||||||
<Col end="sm" middle="xs" className={classes.provider} onClick={toggle}>
|
<Col end="sm" middle="xs" className={classes.provider} onClick={toggle}>
|
||||||
{info}
|
{info}
|
||||||
<IconButton disableRipple className={classes.expand}>
|
<IconButton disableRipple className={classes.expand}>
|
||||||
{open ? <ExpandLess /> : <ExpandMore />}
|
{open ? <ExpandLess /> : <ExpandMore />}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Col>
|
</Col>
|
||||||
|
<Divider />
|
||||||
</div>
|
</div>
|
||||||
{children(this.myRef)}
|
{children(this.myRef)}
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in New Issue