refactor: remove unused state variables in AccessControl component

Signed-off-by: Noooste <83548733+Noooste@users.noreply.github.com>
This commit is contained in:
Noooste
2026-04-19 22:41:21 +02:00
parent fece799627
commit 13e6fa3d1d
-4
View File
@@ -149,8 +149,6 @@ export function AccessControl() {
const [viewingKey, setViewingKey] = useState<AccessKey | null>(null); const [viewingKey, setViewingKey] = useState<AccessKey | null>(null);
const [detailsSecretKey, setDetailsSecretKey] = useState<string>(''); const [detailsSecretKey, setDetailsSecretKey] = useState<string>('');
const [isLoadingDetailsSecretKey, setIsLoadingDetailsSecretKey] = useState(false); const [isLoadingDetailsSecretKey, setIsLoadingDetailsSecretKey] = useState(false);
const [copiedAccessKeyId, setCopiedAccessKeyId] = useState(false);
const [copiedSecretKey, setCopiedSecretKey] = useState(false);
useEffect(() => { useEffect(() => {
const fetchKeys = async () => { const fetchKeys = async () => {
@@ -423,8 +421,6 @@ export function AccessControl() {
setKeyDetailsDialogOpen(true); setKeyDetailsDialogOpen(true);
setDetailsSecretKey(''); setDetailsSecretKey('');
setIsLoadingDetailsSecretKey(true); setIsLoadingDetailsSecretKey(true);
setCopiedAccessKeyId(false);
setCopiedSecretKey(false);
// Fetch the secret key immediately // Fetch the secret key immediately
try { try {