From f4433d80c4fe6ad1ddf00bd8bcda99c15dc38450 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 30 Sep 2020 17:31:48 +0200 Subject: webui: dependencies upgrades Most upgrades are minor version without breaking changes. One big upgrade is Apollo 2 -> 3, which required a few changes in the Apollo setup (see src/apollo.ts). Other changes are due to changes in Prettier, requiring to add parenthesis around arrow function parameters. Because of an incompatibility in older version of typescript-eslint with newer versions of typescript, I had to switch to the "next" unstable version of react-scripts. It should not break stuff though. See typescript-eslint/typescript-eslint#2442 --- webui/src/pages/bug/Bug.tsx | 4 ++-- webui/src/pages/bug/CommentForm.tsx | 2 +- webui/src/pages/bug/LabelChange.tsx | 2 +- webui/src/pages/bug/Message.tsx | 2 +- webui/src/pages/bug/SetStatus.tsx | 2 +- webui/src/pages/bug/SetTitle.tsx | 2 +- webui/src/pages/bug/Timeline.tsx | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) (limited to 'webui/src/pages/bug') diff --git a/webui/src/pages/bug/Bug.tsx b/webui/src/pages/bug/Bug.tsx index 34a3aa26..8d6d11cc 100644 --- a/webui/src/pages/bug/Bug.tsx +++ b/webui/src/pages/bug/Bug.tsx @@ -12,7 +12,7 @@ import { BugFragment } from './Bug.generated'; import CommentForm from './CommentForm'; import TimelineQuery from './TimelineQuery'; -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles((theme) => ({ main: { maxWidth: 1000, margin: 'auto', @@ -103,7 +103,7 @@ function Bug({ bug }: Props) { {bug.labels.length === 0 && ( None yet )} - {bug.labels.map(l => ( + {bug.labels.map((l) => (
  • diff --git a/webui/src/pages/bug/CommentForm.tsx b/webui/src/pages/bug/CommentForm.tsx index 3724baf0..f2a2eb6c 100644 --- a/webui/src/pages/bug/CommentForm.tsx +++ b/webui/src/pages/bug/CommentForm.tsx @@ -13,7 +13,7 @@ import { useAddCommentMutation } from './CommentForm.generated'; import { TimelineDocument } from './TimelineQuery.generated'; type StyleProps = { loading: boolean }; -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles((theme) => ({ container: { margin: theme.spacing(2, 0), padding: theme.spacing(0, 2, 2, 2), diff --git a/webui/src/pages/bug/LabelChange.tsx b/webui/src/pages/bug/LabelChange.tsx index 93fa8a32..c40636c1 100644 --- a/webui/src/pages/bug/LabelChange.tsx +++ b/webui/src/pages/bug/LabelChange.tsx @@ -8,7 +8,7 @@ import Label from 'src/components/Label'; import { LabelChangeFragment } from './LabelChangeFragment.generated'; -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles((theme) => ({ main: { ...theme.typography.body2, marginLeft: theme.spacing(1) + 40, diff --git a/webui/src/pages/bug/Message.tsx b/webui/src/pages/bug/Message.tsx index 4a438b77..91549483 100644 --- a/webui/src/pages/bug/Message.tsx +++ b/webui/src/pages/bug/Message.tsx @@ -10,7 +10,7 @@ import Date from 'src/components/Date'; import { AddCommentFragment } from './MessageCommentFragment.generated'; import { CreateFragment } from './MessageCreateFragment.generated'; -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles((theme) => ({ author: { fontWeight: 'bold', }, diff --git a/webui/src/pages/bug/SetStatus.tsx b/webui/src/pages/bug/SetStatus.tsx index e9674424..855848f9 100644 --- a/webui/src/pages/bug/SetStatus.tsx +++ b/webui/src/pages/bug/SetStatus.tsx @@ -8,7 +8,7 @@ import Date from 'src/components/Date'; import { SetStatusFragment } from './SetStatusFragment.generated'; -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles((theme) => ({ main: { ...theme.typography.body2, marginLeft: theme.spacing(1) + 40, diff --git a/webui/src/pages/bug/SetTitle.tsx b/webui/src/pages/bug/SetTitle.tsx index 64b97517..98bea928 100644 --- a/webui/src/pages/bug/SetTitle.tsx +++ b/webui/src/pages/bug/SetTitle.tsx @@ -7,7 +7,7 @@ import Date from 'src/components/Date'; import { SetTitleFragment } from './SetTitleFragment.generated'; -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles((theme) => ({ main: { ...theme.typography.body2, marginLeft: theme.spacing(1) + 40, diff --git a/webui/src/pages/bug/Timeline.tsx b/webui/src/pages/bug/Timeline.tsx index 73c88cdf..6e1d242e 100644 --- a/webui/src/pages/bug/Timeline.tsx +++ b/webui/src/pages/bug/Timeline.tsx @@ -8,7 +8,7 @@ import SetStatus from './SetStatus'; import SetTitle from './SetTitle'; import { TimelineItemFragment } from './TimelineQuery.generated'; -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles((theme) => ({ main: { '& > *:not(:last-child)': { marginBottom: theme.spacing(2), -- cgit