chore: lint

This commit is contained in:
karishmas6
2024-11-29 22:33:23 +05:30
parent a3c494ea28
commit dcacfbc474

View File

@@ -36,9 +36,9 @@ const ApiKeyManager = () => {
const [copySuccess, setCopySuccess] = useState<boolean>(false); const [copySuccess, setCopySuccess] = useState<boolean>(false);
const { notify } = useGlobalInfoStore(); const { notify } = useGlobalInfoStore();
useEffect(() => { useEffect(() => {
const fetchApiKey = async () => { const fetchApiKey = async () => {
@@ -53,7 +53,7 @@ const ApiKeyManager = () => {
}; };
fetchApiKey(); fetchApiKey();
}, []); }, []);
const generateApiKey = async () => { const generateApiKey = async () => {
@@ -61,7 +61,7 @@ const ApiKeyManager = () => {
try { try {
const { data } = await axios.post(`${apiUrl}/auth/generate-api-key`); const { data } = await axios.post(`${apiUrl}/auth/generate-api-key`);
setApiKey(data.api_key); setApiKey(data.api_key);
notify('success', `Generated API Key successfully`); notify('success', `Generated API Key successfully`);
} catch (error: any) { } catch (error: any) {
notify('error', `Failed to generate API Key - ${error.message}`); notify('error', `Failed to generate API Key - ${error.message}`);