mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
Rename MessageEditHistoryQuery
This commit is contained in:
parent
155b37e81f
commit
dfb039a936
@ -1,7 +1,7 @@
|
||||
#import "./MessageCommentFragment.graphql"
|
||||
#import "./MessageCreateFragment.graphql"
|
||||
|
||||
query MessageEditHistory($bugIdPrefix: String!) {
|
||||
query MessageHistory($bugIdPrefix: String!) {
|
||||
repository {
|
||||
bug(prefix: $bugIdPrefix) {
|
||||
timeline {
|
@ -23,7 +23,7 @@ import CloseIcon from '@material-ui/icons/Close';
|
||||
|
||||
import { AddCommentFragment } from './MessageCommentFragment.generated';
|
||||
import { CreateFragment } from './MessageCreateFragment.generated';
|
||||
import { useMessageEditHistoryQuery } from './MessageEditHistory.generated';
|
||||
import { useMessageHistoryQuery } from './MessageHistory.generated';
|
||||
|
||||
const styles = (theme: Theme) =>
|
||||
createStyles({
|
||||
@ -120,7 +120,7 @@ type Props = {
|
||||
function MessageHistoryDialog({ bugId, commentId, open, onClose }: Props) {
|
||||
const [expanded, setExpanded] = React.useState<string | false>('panel0');
|
||||
|
||||
const { loading, error, data } = useMessageEditHistoryQuery({
|
||||
const { loading, error, data } = useMessageHistoryQuery({
|
||||
variables: { bugIdPrefix: bugId },
|
||||
});
|
||||
if (loading) {
|
||||
|
Loading…
Reference in New Issue
Block a user