diff options
| author | jules <jules@carbonpictures.com> | 2017-06-01 23:41:32 +0000 |
|---|---|---|
| committer | jules <jules@carbonpictures.com> | 2017-06-01 23:41:32 +0000 |
| commit | 291a7be04a43ef0062a31dbfafb481c6e7829b79 (patch) | |
| tree | 018241c1b8b83ab9f802ab3805b1d3fc9429dfa4 /lib/awprint/client/components/Modal.jsx | |
| parent | 8e7adf087ad73228b1d463411b1a6bfc329fb625 (diff) | |
| parent | 1dec5a464d13129194c41342afb3f73386132245 (diff) | |
Merge branch 'master' of ghghgh.us:armory-fmf-cms
Diffstat (limited to 'lib/awprint/client/components/Modal.jsx')
| -rw-r--r-- | lib/awprint/client/components/Modal.jsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/awprint/client/components/Modal.jsx b/lib/awprint/client/components/Modal.jsx new file mode 100644 index 0000000..d3cac86 --- /dev/null +++ b/lib/awprint/client/components/Modal.jsx @@ -0,0 +1,14 @@ +import React, { Component } from 'react' + +export default class Modal extends Component { + render() { + let className = this.props.visible ? 'modal visible' : 'modal' + return ( + <div className={className}> + <div className='inner'> + {this.props.children} + </div> + </div> + ) + } +} |
