mirror of https://github.com/kern/filepizza
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
444 B
JavaScript
28 lines
444 B
JavaScript
import React from 'react'
|
|
|
|
export default class Centered extends React.Component {
|
|
|
|
render() {
|
|
return <div style={{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
justifyContent: 'center',
|
|
height: '100%'}}>
|
|
<div>
|
|
{this.props.children}
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
}
|
|
|
|
Centered.propTypes = {
|
|
hor: React.PropTypes.bool,
|
|
ver: React.PropTypes.bool
|
|
}
|
|
|
|
Centered.defaultProps = {
|
|
hor: false,
|
|
ver: false
|
|
}
|