From ce6f6a984b374b189141116433ced80dfa0c2aae Mon Sep 17 00:00:00 2001
From: Quentin Gliech <quentingliech@gmail.com>
Date: Thu, 13 Feb 2020 20:00:03 +0100
Subject: webui: move pages components

---
 webui/src/pages/bug/SetStatus.tsx | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 webui/src/pages/bug/SetStatus.tsx

(limited to 'webui/src/pages/bug/SetStatus.tsx')

diff --git a/webui/src/pages/bug/SetStatus.tsx b/webui/src/pages/bug/SetStatus.tsx
new file mode 100644
index 00000000..251abf69
--- /dev/null
+++ b/webui/src/pages/bug/SetStatus.tsx
@@ -0,0 +1,32 @@
+import React from 'react';
+
+import { makeStyles } from '@material-ui/core/styles';
+
+import Author from 'src/components/Author';
+import Date from 'src/components/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;
-- 
cgit 


From e408ca8a2851d44ae105bf4e226b05eff609950e Mon Sep 17 00:00:00 2001
From: Michael Muré <batolettre@gmail.com>
Date: Sun, 16 Feb 2020 02:04:57 +0100
Subject: webui: minor styling of the timeline events

---
 webui/src/pages/bug/SetStatus.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webui/src/pages/bug/SetStatus.tsx')

diff --git a/webui/src/pages/bug/SetStatus.tsx b/webui/src/pages/bug/SetStatus.tsx
index 251abf69..413f764d 100644
--- a/webui/src/pages/bug/SetStatus.tsx
+++ b/webui/src/pages/bug/SetStatus.tsx
@@ -9,7 +9,7 @@ import { SetStatusFragment } from './SetStatusFragment.generated';
 
 const useStyles = makeStyles(theme => ({
   main: {
-    ...theme.typography.body1,
+    ...theme.typography.body2,
     marginLeft: theme.spacing(1) + 40,
   },
 }));
-- 
cgit 


From 218d460590a29fe84b94c024712a095e5f82f917 Mon Sep 17 00:00:00 2001
From: Michael Muré <batolettre@gmail.com>
Date: Mon, 17 Feb 2020 13:17:44 +0100
Subject: webui: style SetStatus

---
 webui/src/pages/bug/SetStatus.tsx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'webui/src/pages/bug/SetStatus.tsx')

diff --git a/webui/src/pages/bug/SetStatus.tsx b/webui/src/pages/bug/SetStatus.tsx
index 413f764d..56fde6f9 100644
--- a/webui/src/pages/bug/SetStatus.tsx
+++ b/webui/src/pages/bug/SetStatus.tsx
@@ -6,12 +6,16 @@ import Author from 'src/components/Author';
 import Date from 'src/components/Date';
 
 import { SetStatusFragment } from './SetStatusFragment.generated';
+import { Status } from '../../gqlTypes'
 
 const useStyles = makeStyles(theme => ({
   main: {
     ...theme.typography.body2,
     marginLeft: theme.spacing(1) + 40,
   },
+  author: {
+    fontWeight: 'bold',
+  },
 }));
 
 type Props = {
@@ -20,10 +24,12 @@ type Props = {
 
 function SetStatus({ op }: Props) {
   const classes = useStyles();
+  const status = { [Status.Open]: 'reopened', [Status.Closed]: 'closed' }[op.status]
+
   return (
     <div className={classes.main}>
-      <Author author={op.author} bold />
-      <span> {op.status.toLowerCase()} this</span>
+      <Author author={op.author} className={classes.author} />
+      <span> {status} this </span>
       <Date date={op.date} />
     </div>
   );
-- 
cgit 


From f96484391ae817a18f503b5c31cd3bd2211553df Mon Sep 17 00:00:00 2001
From: ludovicm67 <ludovicmuller1@gmail.com>
Date: Sat, 22 Feb 2020 19:25:37 +0100
Subject: webui: run linter fix

---
 webui/src/pages/bug/SetStatus.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'webui/src/pages/bug/SetStatus.tsx')

diff --git a/webui/src/pages/bug/SetStatus.tsx b/webui/src/pages/bug/SetStatus.tsx
index 56fde6f9..e9674424 100644
--- a/webui/src/pages/bug/SetStatus.tsx
+++ b/webui/src/pages/bug/SetStatus.tsx
@@ -2,11 +2,11 @@ import React from 'react';
 
 import { makeStyles } from '@material-ui/core/styles';
 
+import { Status } from '../../gqlTypes';
 import Author from 'src/components/Author';
 import Date from 'src/components/Date';
 
 import { SetStatusFragment } from './SetStatusFragment.generated';
-import { Status } from '../../gqlTypes'
 
 const useStyles = makeStyles(theme => ({
   main: {
@@ -24,7 +24,9 @@ type Props = {
 
 function SetStatus({ op }: Props) {
   const classes = useStyles();
-  const status = { [Status.Open]: 'reopened', [Status.Closed]: 'closed' }[op.status]
+  const status = { [Status.Open]: 'reopened', [Status.Closed]: 'closed' }[
+    op.status
+  ];
 
   return (
     <div className={classes.main}>
-- 
cgit 

