mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 18:23:08 +03:00
Rename MessageEditHistoryQuery
This commit is contained in:
parent
155b37e81f
commit
dfb039a936
@ -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 {
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user