summaryrefslogtreecommitdiff
path: root/www/app/components/center.js
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-09-16 14:02:32 -0700
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-22 11:40:11 -0400
commit073393af311d36c8ca7570ff0d3f0a3117c0b544 (patch)
treee59286ac350ba17110392f53b6e48bcedfd12ef1 /www/app/components/center.js
parentae5a20d059209f2027c05820dc3b4cfe7346c8a8 (diff)
[pkg] rename www to ui
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 6fa62128..00000000
--- 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