Skip to content

Commit

Permalink
fixed overlay js
Browse files Browse the repository at this point in the history
  • Loading branch information
akmamun authored Aug 20, 2019
1 parent 437809f commit c1e37d3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions react-js/overlay/Overlay.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import React from 'react';
import styles from "./Overlay.module.css";
import styles from "./Overlay.module.css";

const Overlay = ({children, className, show, close}) => (
<div className={styles.overlay + " " + className} style={{display: show ? 'block' : 'none'}}>
<div className={styles.overlay} onClick={close}/>
<div className={styles.content}>
<span className={styles.closeButton} onClick={close}>
&times;
</span>
&times;
</span>

{children}
</div>

</div>
);
export default Overlay;

0 comments on commit c1e37d3

Please sign in to comment.