Using button in the Drawer

This commit is contained in:
okbel
2018-01-05 14:24:21 -03:00
parent 5a379b2cd8
commit 14034c1364
+1 -2
View File
@@ -6,8 +6,7 @@ import styles from './Drawer.css';
const Drawer = ({children, onClose, className = ''}) => {
return (
<div className={cn(styles.drawer, className)}>
{/* TODO: Swap out with button */}
<div className={cn(styles.closeButton, [className, 'close-button'].join('-'))} onClick={onClose}>×</div>
<button className={cn(styles.closeButton, [className, 'close-button'].join('-'))} onClick={onClose}>×</button>
<div className={styles.content}>
{children}
</div>