webui: run linter fix

ludovicm67 created

Change summary

webui/src/components/Date.tsx      | 4 +++-
webui/src/pages/bug/SetStatus.tsx  | 6 ++++--
webui/src/pages/list/ListQuery.tsx | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)

Detailed changes

webui/src/components/Date.tsx 🔗

@@ -11,7 +11,9 @@ const WEEK = 7 * DAY;
 type Props = { date: string };
 const Date = ({ date }: Props) => (
   <Tooltip title={moment(date).format('LLLL')}>
-    <span>on <Moment date={date} format='ll' fromNowDuring={WEEK} /></span>
+    <span>
+      on <Moment date={date} format="ll" fromNowDuring={WEEK} />
+    </span>
   </Tooltip>
 );
 

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}>

webui/src/pages/list/ListQuery.tsx 🔗

@@ -164,7 +164,7 @@ function ListQuery() {
   const location = useLocation();
   const history = useHistory();
   const params = new URLSearchParams(location.search);
-  const query = params.has('q') ? (params.get('q') || '') : 'status:open';
+  const query = params.has('q') ? params.get('q') || '' : 'status:open';
 
   const [input, setInput] = useState(query);