import React from 'react' import PropTypes from 'prop-types' import { graphql } from 'react-apollo' import Typography from '@material-ui/core/Typography' import { withStyles } from '@material-ui/core/styles' import Drawer from '@material-ui/core/Drawer' import List from '@material-ui/core/List' import Divider from '@material-ui/core/Divider' import Grid from '@material-ui/core/Grid' import Card from '@material-ui/core/Card' import CardContent from '@material-ui/core/CardContent' import CardMedia from '@material-ui/core/CardMedia' import CardActions from '@material-ui/core/CardActions' import Button from '@material-ui/core/Button' import { MainDrawerItems, SecondaryDrawerItems } from './components/DrawerLinks' import { CreateTeamDialog } from './components/CreateTeam' import { CreateTeamMutation } from '../../graphql/teams/CreateTeamMutation' import aaweb from '../../assets/AlgonetWebPlatform.jpg' const drawerWidth = 240 const styles = theme => ({ root: { display: 'flex' }, '@global': { body: { backgroundColor: theme.palette.common.white } }, appBar: { zIndex: theme.zIndex.drawer + 1 }, drawerPaper: { position: 'relative', width: drawerWidth, whiteSpace: 'nowrap', zIndex: 1000 }, content: { flexGrow: 1, backgroundColor: theme.palette.background.default, padding: theme.spacing.unit * 3, height: '100vh', overflow: 'auto', width: `calc(90% - ${drawerWidth}px)` }, appBarSpacer: theme.mixins.toolbar, tableContainer: { height: 320 }, card: { display: 'flex', width: '100%' }, cardDetails: { display: 'flex', flex: 1 }, cardContent: { flex: 1 }, cardMedia: { flex: 1, width: 160, height: 160, justifyContent: 'flex-start' }, aawebMedia: { width: '100%', height: 320 }, buttonRight: { justifyContent: 'flex-end' }, extendedIcon: { marginRight: theme.spacing.unit } }) const Dashboard = ({ classes, createTeamMutation, ...props }) => (