diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-06-01 18:11:31 -0400 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-06-01 18:11:31 -0400 |
| commit | 997239e74ddb2ce3bd159222664c42f8978d5286 (patch) | |
| tree | a0ec28a214c69fca2cecb9ba26fe4e3c1e2c47a1 /lib/awprint/client/components/Modal.jsx | |
| parent | 1f9253253e1914fb09ec0b54201ad934870782d8 (diff) | |
printer socket io and stuff
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> + ) + } +} |
