mirror of https://github.com/kern/filepizza
Replace the Centered component with flexbox.
parent
8cedc54b0c
commit
3a2b849295
@ -1,27 +0,0 @@
|
||||
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
|
||||
}
|
||||
Loading…
Reference in New Issue