import { makeStyles } from '@material-ui/styles'; import gql from 'graphql-tag'; import React from 'react'; import Author from '../Author'; import Date from '../Date'; const useStyles = makeStyles(theme => ({ main: { ...theme.typography.body2, marginLeft: theme.spacing.unit + 40, }, bold: { fontWeight: 'bold', }, })); function SetTitle({ op }) { const classes = useStyles(); return (
changed the title from {op.was} to {op.title}
); } SetTitle.fragment = gql` fragment SetTitle on TimelineItem { ... on SetTitleTimelineItem { date author { name email displayName } title was } } `; export default SetTitle;