Skip to content
Snippets Groups Projects
GridView.jsx 807 B
Newer Older
  • Learn to ignore specific revisions
  • import React from 'react'
    import { withStyles } from '@material-ui/core/styles'
    
    import GridViewItem from '@src/js/components/database/data-browser/GridViewItem.jsx'
    import Grid from '@material-ui/core/Grid'
    
    const styles = (theme) => ({
        container: {
            fontFamily: theme.typography.fontFamily,
            display: 'grid',
            gridTemplateColumns: 'repeat(auto-fill, minmax(8rem, 1fr))',
            gridGap: '0.5rem'
        }
    
    class GridView extends React.Component {
    
            const { classes, configuration, files } = this.props
    
                <Grid container className={classes.container}>
    
                    {files.map((file) => <GridViewItem file={file} configuration={configuration}/>)}
    
    export default withStyles(styles)(GridView)