diff options
author | Quentin Gliech <quentingliech@gmail.com> | 2022-02-16 10:32:20 +0100 |
---|---|---|
committer | Quentin Gliech <quentingliech@gmail.com> | 2022-02-16 10:32:20 +0100 |
commit | bce4d095e16fb33d181b29aa1d3476037c0c873a (patch) | |
tree | 5906465bec4fec179597cd707a710bad08583cd8 /webui/src/components/Identity | |
parent | ce50269639988e39fe4e27cc8c309a9d5c75c958 (diff) | |
download | git-bug-bce4d095e16fb33d181b29aa1d3476037c0c873a.tar.gz |
webui: replace React imports
Diffstat (limited to 'webui/src/components/Identity')
-rw-r--r-- | webui/src/components/Identity/CurrentIdentity.tsx | 6 |
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; |