import React from 'react'; import { Query } from 'react-apollo'; import Typography from '@material-ui/core/Typography'; import { withStyles } from '@material-ui/core/styles'; import styles from './styles'; import TopBar from '../../TopBar'; import { showEventCalls } from '../../../GraphQL/Calls/index'; class Edit extends React.Component { render() { return ( Enroll in an competition {this.props.match.params.slug} {({ loading, error, data }) => { if (loading) return 'Loading...'; if (error) return `Error! ${error.message}`; return (

{data.events_Event.description}

); }}
); } } export default withStyles(styles)(Edit);