aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components/Identity/CurrentIdentity.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/components/Identity/CurrentIdentity.tsx')
-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;