mirror of
https://github.com/Noooste/garage-ui.git
synced 2026-08-31 17:28:14 +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 [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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user