aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components/Identity
diff options
context:
space:
mode:
authorQuentin Gliech <quentingliech@gmail.com>2022-02-16 10:32:20 +0100
committerQuentin Gliech <quentingliech@gmail.com>2022-02-16 10:32:20 +0100
commitbce4d095e16fb33d181b29aa1d3476037c0c873a (patch)
tree5906465bec4fec179597cd707a710bad08583cd8 /webui/src/components/Identity
parentce50269639988e39fe4e27cc8c309a9d5c75c958 (diff)
downloadgit-bug-bce4d095e16fb33d181b29aa1d3476037c0c873a.tar.gz
webui: replace React imports
Diffstat (limited to 'webui/src/components/Identity')
-rw-r--r--webui/src/components/Identity/CurrentIdentity.tsx6
1 files changed, 3 insertions, 3 deletions
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;