Icon User Drawer

This commit is contained in:
okbel
2018-01-10 17:35:50 -03:00
parent acc2e00c54
commit 7127aeaa87
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -37,6 +37,12 @@
text-align: center;
cursor: pointer;
.icon {
color: #595959;
font-size: 25px;
display: block;
}
&:hover {
color: #ccc;
}
+4 -1
View File
@@ -2,11 +2,14 @@ import React from 'react';
import cn from 'classnames';
import PropTypes from 'prop-types';
import styles from './Drawer.css';
import {Icon} from 'coral-ui';
const Drawer = ({children, onClose, className = ''}) => {
return (
<div className={cn(styles.drawer, className)}>
<button className={cn(styles.closeButton, [className, 'close-button'].join('-'))} onClick={onClose}>×</button>
<button className={cn(styles.closeButton, [className, 'close-button'].join('-'))} onClick={onClose}>
<Icon name="close" className={styles.icon} />
</button>
<div className={styles.content}>
{children}
</div>