aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/components')
-rw-r--r--webui/src/components/Author.tsx1
-rw-r--r--webui/src/components/BackToListButton.tsx1
-rw-r--r--webui/src/components/BugTitleForm/BugTitleForm.tsx2
-rw-r--r--webui/src/components/CloseBugButton/index.tsx2
-rw-r--r--webui/src/components/CloseBugWithCommentButton/index.tsx2
-rw-r--r--webui/src/components/CommentInput/CommentInput.tsx3
-rw-r--r--webui/src/components/Content/AnchorTag.tsx2
-rw-r--r--webui/src/components/Content/BlockQuoteTag.tsx2
-rw-r--r--webui/src/components/Content/ImageTag.tsx2
-rw-r--r--webui/src/components/Content/PreTag.tsx2
-rw-r--r--webui/src/components/Content/index.tsx3
-rw-r--r--webui/src/components/Date.tsx1
-rw-r--r--webui/src/components/Header/Header.tsx1
-rw-r--r--webui/src/components/Header/index.tsx2
-rw-r--r--webui/src/components/Identity/CurrentIdentity.tsx6
-rw-r--r--webui/src/components/IfLoggedIn/IfLoggedIn.tsx2
-rw-r--r--webui/src/components/Label.tsx2
-rw-r--r--webui/src/components/ReopenBugButton/index.tsx2
-rw-r--r--webui/src/components/ReopenBugWithCommentButton/index.tsx2
-rw-r--r--webui/src/components/Themer.tsx3
20 files changed, 16 insertions, 27 deletions
diff --git a/webui/src/components/Author.tsx b/webui/src/components/Author.tsx
index 593b5d36..b9f95aae 100644
--- a/webui/src/components/Author.tsx
+++ b/webui/src/components/Author.tsx
@@ -1,4 +1,3 @@
-import React from 'react';
import { Link as RouterLink } from 'react-router-dom';
import MAvatar from '@material-ui/core/Avatar';
diff --git a/webui/src/components/BackToListButton.tsx b/webui/src/components/BackToListButton.tsx
index 41e1d68a..8bc75491 100644
--- a/webui/src/components/BackToListButton.tsx
+++ b/webui/src/components/BackToListButton.tsx
@@ -1,4 +1,3 @@
-import React from 'react';
import { Link } from 'react-router-dom';
import Button from '@material-ui/core/Button';
diff --git a/webui/src/components/BugTitleForm/BugTitleForm.tsx b/webui/src/components/BugTitleForm/BugTitleForm.tsx
index 2a3c4db0..6007680f 100644
--- a/webui/src/components/BugTitleForm/BugTitleForm.tsx
+++ b/webui/src/components/BugTitleForm/BugTitleForm.tsx
@@ -1,4 +1,4 @@
-import React, { useState } from 'react';
+import { useState } from 'react';
import { Link } from 'react-router-dom';
import { Button, makeStyles, Typography } from '@material-ui/core';
diff --git a/webui/src/components/CloseBugButton/index.tsx b/webui/src/components/CloseBugButton/index.tsx
index bb154ea7..77b93e7f 100644
--- a/webui/src/components/CloseBugButton/index.tsx
+++ b/webui/src/components/CloseBugButton/index.tsx
@@ -1,5 +1,3 @@
-import React from 'react';
-
import Button from '@material-ui/core/Button';
import CircularProgress from '@material-ui/core/CircularProgress';
import { makeStyles, Theme } from '@material-ui/core/styles';
diff --git a/webui/src/components/CloseBugWithCommentButton/index.tsx b/webui/src/components/CloseBugWithCommentButton/index.tsx
index cbf3f757..9663ec3f 100644
--- a/webui/src/components/CloseBugWithCommentButton/index.tsx
+++ b/webui/src/components/CloseBugWithCommentButton/index.tsx
@@ -1,5 +1,3 @@
-import React from 'react';
-
import Button from '@material-ui/core/Button';
import CircularProgress from '@material-ui/core/CircularProgress';
import { makeStyles, Theme } from '@material-ui/core/styles';
diff --git a/webui/src/components/CommentInput/CommentInput.tsx b/webui/src/components/CommentInput/CommentInput.tsx
index babd495c..07322a22 100644
--- a/webui/src/components/CommentInput/CommentInput.tsx
+++ b/webui/src/components/CommentInput/CommentInput.tsx
@@ -1,4 +1,5 @@
-import React, { useState, useEffect } from 'react';
+import { useState, useEffect } from 'react';
+import * as React from 'react';
import { Typography } from '@material-ui/core';
import Tab from '@material-ui/core/Tab';
diff --git a/webui/src/components/Content/AnchorTag.tsx b/webui/src/components/Content/AnchorTag.tsx
index bbd45bc8..0ded34b6 100644
--- a/webui/src/components/Content/AnchorTag.tsx
+++ b/webui/src/components/Content/AnchorTag.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
import { Link } from 'react-router-dom';
import { makeStyles } from '@material-ui/core/styles';
diff --git a/webui/src/components/Content/BlockQuoteTag.tsx b/webui/src/components/Content/BlockQuoteTag.tsx
index c7c250f5..d9674b5d 100644
--- a/webui/src/components/Content/BlockQuoteTag.tsx
+++ b/webui/src/components/Content/BlockQuoteTag.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
import { makeStyles } from '@material-ui/core/styles';
diff --git a/webui/src/components/Content/ImageTag.tsx b/webui/src/components/Content/ImageTag.tsx
index 94004f0e..2e12ee45 100644
--- a/webui/src/components/Content/ImageTag.tsx
+++ b/webui/src/components/Content/ImageTag.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
import { makeStyles } from '@material-ui/styles';
diff --git a/webui/src/components/Content/PreTag.tsx b/webui/src/components/Content/PreTag.tsx
index ecb573e0..4601cc2d 100644
--- a/webui/src/components/Content/PreTag.tsx
+++ b/webui/src/components/Content/PreTag.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
import { makeStyles } from '@material-ui/styles';
diff --git a/webui/src/components/Content/index.tsx b/webui/src/components/Content/index.tsx
index ccb412c1..9bf9ff7a 100644
--- a/webui/src/components/Content/index.tsx
+++ b/webui/src/components/Content/index.tsx
@@ -1,4 +1,5 @@
-import React, { createElement, Fragment, useEffect, useState } from 'react';
+import { createElement, Fragment, useEffect, useState } from 'react';
+import * as React from 'react';
import rehypeReact from 'rehype-react';
import gemoji from 'remark-gemoji';
import html from 'remark-html';
diff --git a/webui/src/components/Date.tsx b/webui/src/components/Date.tsx
index f9e0a0b2..edc531b0 100644
--- a/webui/src/components/Date.tsx
+++ b/webui/src/components/Date.tsx
@@ -1,5 +1,4 @@
import moment from 'moment';
-import React from 'react';
import Moment from 'react-moment';
import Tooltip from '@material-ui/core/Tooltip/Tooltip';
diff --git a/webui/src/components/Header/Header.tsx b/webui/src/components/Header/Header.tsx
index 866e52db..f9053f76 100644
--- a/webui/src/components/Header/Header.tsx
+++ b/webui/src/components/Header/Header.tsx
@@ -1,4 +1,3 @@
-import React from 'react';
import { Link, useLocation } from 'react-router-dom';
import AppBar from '@material-ui/core/AppBar';
diff --git a/webui/src/components/Header/index.tsx b/webui/src/components/Header/index.tsx
index 42a0cfc1..e4dc8d19 100644
--- a/webui/src/components/Header/index.tsx
+++ b/webui/src/components/Header/index.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
import CssBaseline from '@material-ui/core/CssBaseline';
diff --git a/webui/src/components/Identity/CurrentIdentity.tsx b/webui/src/components/Identity/CurrentIdentity.tsx
index 2d62dcdb..7be2a5f0 100644
--- a/webui/src/components/Identity/CurrentIdentity.tsx
+++ b/webui/src/components/Identity/CurrentIdentity.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import { useState, useRef } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import {
@@ -37,8 +37,8 @@ const CurrentIdentity = () => {
const classes = useStyles();
const { loading, error, data } = useCurrentIdentityQuery();
- const [open, setOpen] = React.useState(false);
- const anchorRef = React.useRef<HTMLButtonElement>(null);
+ const [open, setOpen] = useState(false);
+ const anchorRef = useRef<HTMLButtonElement>(null);
if (error || loading || !data?.repository?.userIdentity) return null;
diff --git a/webui/src/components/IfLoggedIn/IfLoggedIn.tsx b/webui/src/components/IfLoggedIn/IfLoggedIn.tsx
index ce120da1..965135d9 100644
--- a/webui/src/components/IfLoggedIn/IfLoggedIn.tsx
+++ b/webui/src/components/IfLoggedIn/IfLoggedIn.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
import { useCurrentIdentityQuery } from '../Identity/CurrentIdentity.generated';
diff --git a/webui/src/components/Label.tsx b/webui/src/components/Label.tsx
index a1d3c6f9..05f6c279 100644
--- a/webui/src/components/Label.tsx
+++ b/webui/src/components/Label.tsx
@@ -1,5 +1,3 @@
-import React from 'react';
-
import { Chip } from '@material-ui/core';
import { common } from '@material-ui/core/colors';
import {
diff --git a/webui/src/components/ReopenBugButton/index.tsx b/webui/src/components/ReopenBugButton/index.tsx
index e62c58df..2433bc60 100644
--- a/webui/src/components/ReopenBugButton/index.tsx
+++ b/webui/src/components/ReopenBugButton/index.tsx
@@ -1,5 +1,3 @@
-import React from 'react';
-
import Button from '@material-ui/core/Button';
import CircularProgress from '@material-ui/core/CircularProgress';
diff --git a/webui/src/components/ReopenBugWithCommentButton/index.tsx b/webui/src/components/ReopenBugWithCommentButton/index.tsx
index 817054b8..54e8b1e7 100644
--- a/webui/src/components/ReopenBugWithCommentButton/index.tsx
+++ b/webui/src/components/ReopenBugWithCommentButton/index.tsx
@@ -1,5 +1,3 @@
-import React from 'react';
-
import Button from '@material-ui/core/Button';
import CircularProgress from '@material-ui/core/CircularProgress';
diff --git a/webui/src/components/Themer.tsx b/webui/src/components/Themer.tsx
index edf1f352..063587e3 100644
--- a/webui/src/components/Themer.tsx
+++ b/webui/src/components/Themer.tsx
@@ -1,4 +1,5 @@
-import React, { createContext, useContext, useState } from 'react';
+import { createContext, useContext, useState } from 'react';
+import * as React from 'react';
import { ThemeProvider } from '@material-ui/core';
import IconButton from '@material-ui/core/IconButton';