Rename MessageEditHistoryQuery

This commit is contained in:
Sascha 2021-03-19 14:25:42 +01:00
parent 155b37e81f
commit dfb039a936
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#import "./MessageCommentFragment.graphql" #import "./MessageCommentFragment.graphql"
#import "./MessageCreateFragment.graphql" #import "./MessageCreateFragment.graphql"
query MessageEditHistory($bugIdPrefix: String!) { query MessageHistory($bugIdPrefix: String!) {
repository { repository {
bug(prefix: $bugIdPrefix) { bug(prefix: $bugIdPrefix) {
timeline { timeline {

View File

@ -23,7 +23,7 @@ import CloseIcon from '@material-ui/icons/Close';
import { AddCommentFragment } from './MessageCommentFragment.generated'; import { AddCommentFragment } from './MessageCommentFragment.generated';
import { CreateFragment } from './MessageCreateFragment.generated'; import { CreateFragment } from './MessageCreateFragment.generated';
import { useMessageEditHistoryQuery } from './MessageEditHistory.generated'; import { useMessageHistoryQuery } from './MessageHistory.generated';
const styles = (theme: Theme) => const styles = (theme: Theme) =>
createStyles({ createStyles({
@ -120,7 +120,7 @@ type Props = {
function MessageHistoryDialog({ bugId, commentId, open, onClose }: Props) { function MessageHistoryDialog({ bugId, commentId, open, onClose }: Props) {
const [expanded, setExpanded] = React.useState<string | false>('panel0'); const [expanded, setExpanded] = React.useState<string | false>('panel0');
const { loading, error, data } = useMessageEditHistoryQuery({ const { loading, error, data } = useMessageHistoryQuery({
variables: { bugIdPrefix: bugId }, variables: { bugIdPrefix: bugId },
}); });
if (loading) { if (loading) {