aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/pages/bug/Timeline.tsx
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-03-17 12:28:45 +0100
committerSascha <GlancingMind@outlook.com>2021-03-19 17:51:28 +0100
commitcd4b1adebbb009caba47b7dc4f543c4d951841f2 (patch)
tree8ed760969a8d7eea762a4bdf3b7041f9ee43129e /webui/src/pages/bug/Timeline.tsx
parent26ad5fc379749d7effc324ae36e778ee540053a7 (diff)
downloadgit-bug-cd4b1adebbb009caba47b7dc4f543c4d951841f2.tar.gz
Pass BugFragment as prop to EditComment
Diffstat (limited to 'webui/src/pages/bug/Timeline.tsx')
-rw-r--r--webui/src/pages/bug/Timeline.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/webui/src/pages/bug/Timeline.tsx b/webui/src/pages/bug/Timeline.tsx
index 6e1d242e..60459a53 100644
--- a/webui/src/pages/bug/Timeline.tsx
+++ b/webui/src/pages/bug/Timeline.tsx
@@ -2,6 +2,7 @@ import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
+import { BugFragment } from './Bug.generated';
import LabelChange from './LabelChange';
import Message from './Message';
import SetStatus from './SetStatus';
@@ -18,9 +19,10 @@ const useStyles = makeStyles((theme) => ({
type Props = {
ops: Array<TimelineItemFragment>;
+ bug: BugFragment;
};
-function Timeline({ ops }: Props) {
+function Timeline({ bug, ops }: Props) {
const classes = useStyles();
return (
@@ -28,9 +30,9 @@ function Timeline({ ops }: Props) {
{ops.map((op, index) => {
switch (op.__typename) {
case 'CreateTimelineItem':
- return <Message key={index} op={op} />;
+ return <Message key={index} op={op} bug={bug} />;
case 'AddCommentTimelineItem':
- return <Message key={index} op={op} />;
+ return <Message key={index} op={op} bug={bug} />;
case 'LabelChangeTimelineItem':
return <LabelChange key={index} op={op} />;
case 'SetTitleTimelineItem':