mirror of
https://github.com/Noooste/garage-ui.git
synced 2026-08-05 19:57:41 +00:00
refactor: remove unused state variables in AccessControl component
Signed-off-by: Noooste <83548733+Noooste@users.noreply.github.com>
This commit is contained in:
@@ -149,8 +149,6 @@ export function AccessControl() {
|
||||
const [viewingKey, setViewingKey] = useState<AccessKey | null>(null);
|
||||
const [detailsSecretKey, setDetailsSecretKey] = useState<string>('');
|
||||
const [isLoadingDetailsSecretKey, setIsLoadingDetailsSecretKey] = useState(false);
|
||||
const [copiedAccessKeyId, setCopiedAccessKeyId] = useState(false);
|
||||
const [copiedSecretKey, setCopiedSecretKey] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
const fetchKeys = async () => {
|
||||
@@ -423,8 +421,6 @@ export function AccessControl() {
|
||||
setKeyDetailsDialogOpen(true);
|
||||
setDetailsSecretKey('');
|
||||
setIsLoadingDetailsSecretKey(true);
|
||||
setCopiedAccessKeyId(false);
|
||||
setCopiedSecretKey(false);
|
||||
|
||||
// Fetch the secret key immediately
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user