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.body1, marginLeft: theme.spacing(1) + 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 ...authored title was } } ${Author.fragment} `; export default SetTitle;