import { withStyles } from '@material-ui/core/styles' import gql from 'graphql-tag' import React from 'react' import Author from '../Author' import Date from '../Date' const styles = theme => ({ main: { ...theme.typography.body2 }, bold: { fontWeight: 'bold' } }) const SetTitle = ({op, classes}) => { return (
changed the title from {op.was} to {op.title}
) } SetTitle.fragment = gql` fragment SetTitle on Operation { ... on SetTitleOperation { date author { name email } title was } } ` export default withStyles(styles)(SetTitle)