diff --git a/src/components/flamelink/FlameLinkCollectionComponentCreations.js b/src/components/flamelink/FlameLinkCollectionComponentCreations.js index 1611c80..587913d 100644 --- a/src/components/flamelink/FlameLinkCollectionComponentCreations.js +++ b/src/components/flamelink/FlameLinkCollectionComponentCreations.js @@ -1,25 +1,48 @@ -import React, { Component} from 'react'; +import React, { Component } from 'react'; import Grid from '@material-ui/core/Grid'; import FlameLinkCollectionStructure from './FlameLinkCollectionStructure'; +import PropTypes from 'prop-types'; +import { withStyles } from '@material-ui/core/styles'; +import Paper from '@material-ui/core/Paper'; + +const styles = theme => ({ + root: { + ...theme.mixins.gutters(), + margin: theme.spacing.unit * 2, + paddingTop: theme.spacing.unit * 2, + paddingBottom: theme.spacing.unit * 2, + width: '100%' + }, +}); class FlameLinkCollectionComponentCreations extends Component { - createCollectionEntries(schemaData, schemaContent, arr){ + createCollectionEntries(schemaData, schemaContent, arr) { var collectionInfo = [schemaData, schemaContent]; return arr.map(this.createCollectionComponents, collectionInfo); } - createCollectionComponents(num){ - return + createCollectionComponents(num) { + return ( + + ); } render() { - return( + const { classes } = this.props; + + return ( + {this.createCollectionEntries(this.props.schemaData, this.props.schemaContent, this.props.arr)} + ); } } -export default FlameLinkCollectionComponentCreations; \ No newline at end of file +FlameLinkCollectionComponentCreations.propTypes = { + classes: PropTypes.object.isRequired, +}; + +export default withStyles(styles)(FlameLinkCollectionComponentCreations); \ No newline at end of file