Creating a OpenPaper component for integration it in the Open Safe Stepper

This commit is contained in:
apanizo 2018-09-13 17:08:30 +02:00
parent e64da52fa1
commit 29c9b786fa
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
// @flow
import * as React from 'react'
import { withStyles } from '@material-ui/core/styles'
import Paper from '@material-ui/core/Paper'
import Block from '~/components/layout/Block'
import { lg } from '~/theme/variables'
const styles = () => ({
root: {
padding: lg,
maxWidth: '770px',
},
container: {
maxWidth: '600px',
letterSpacing: '-0.5px',
},
})
type Props = {
classes: Object,
children: React$Node,
}
const OpenPaper = ({ classes, children }: Props) => (
<Paper className={classes.root} elevation={1}>
<Block className={classes.container}>
{children}
</Block>
</Paper>
)
export default withStyles(styles)(OpenPaper)