summaryrefslogtreecommitdiff
path: root/www/app/components/center.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/app/components/center.js')
-rw-r--r--www/app/components/center.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/www/app/components/center.js b/www/app/components/center.js
deleted file mode 100644
index 6fa6212..0000000
--- a/www/app/components/center.js
+++ /dev/null
@@ -1,39 +0,0 @@
-//
-// puts a block right in the center of the window
-//
-
-import React from 'react'
-
-class Center extends React.Component {
-
- static get defaultProps() {return{
- width: null
- }}
-
- constructor(props) {
- super(props)
- }
-
- render() {
- let style = null
- if (this.props.width) {
- style = {width: this.props.width + 'px'}
- }
- return (
- <div className="center-container">
- <div className="center-item" style={style}>
- {this.props.children}
- </div>
- </div>
- )
- }
-}
-
-Center.propTypes = {
- children: React.PropTypes.oneOfType([
- React.PropTypes.element,
- React.PropTypes.arrayOf(React.PropTypes.element)
- ])
-}
-
-export default Center