aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/bug/SetStatus.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/bug/SetStatus.tsx')
-rw-r--r--webui/src/bug/SetStatus.tsx30
1 files changed, 30 insertions, 0 deletions
diff --git a/webui/src/bug/SetStatus.tsx b/webui/src/bug/SetStatus.tsx
new file mode 100644
index 00000000..6d51e342
--- /dev/null
+++ b/webui/src/bug/SetStatus.tsx
@@ -0,0 +1,30 @@
+import { makeStyles } from '@material-ui/core/styles';
+import React from 'react';
+
+import Author from '../Author';
+import Date from '../Date';
+import { SetStatusFragment } from './SetStatusFragment.generated';
+
+const useStyles = makeStyles(theme => ({
+ main: {
+ ...theme.typography.body1,
+ marginLeft: theme.spacing(1) + 40,
+ },
+}));
+
+type Props = {
+ op: SetStatusFragment;
+};
+
+function SetStatus({ op }: Props) {
+ const classes = useStyles();
+ return (
+ <div className={classes.main}>
+ <Author author={op.author} bold />
+ <span> {op.status.toLowerCase()} this</span>
+ <Date date={op.date} />
+ </div>
+ );
+}
+
+export default SetStatus;