chore: -rm comments
This commit is contained in:
@@ -14,7 +14,6 @@ import styled from 'styled-components';
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { useGlobalInfoStore } from '../../context/globalInfo';
|
import { useGlobalInfoStore } from '../../context/globalInfo';
|
||||||
|
|
||||||
// Styled components
|
|
||||||
const Container = styled(Box)`
|
const Container = styled(Box)`
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -40,7 +39,6 @@ const ApiKey = () => {
|
|||||||
|
|
||||||
const {notify} = useGlobalInfoStore();
|
const {notify} = useGlobalInfoStore();
|
||||||
|
|
||||||
// Fetch API Key on mount
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchApiKey = async () => {
|
const fetchApiKey = async () => {
|
||||||
try {
|
try {
|
||||||
@@ -57,7 +55,6 @@ const ApiKey = () => {
|
|||||||
fetchApiKey();
|
fetchApiKey();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// Handle API Key generation
|
|
||||||
const generateApiKey = async () => {
|
const generateApiKey = async () => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
@@ -71,7 +68,6 @@ const ApiKey = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Copy to clipboard handler
|
|
||||||
const copyToClipboard = () => {
|
const copyToClipboard = () => {
|
||||||
if (apiKey) {
|
if (apiKey) {
|
||||||
navigator.clipboard.writeText(apiKey);
|
navigator.clipboard.writeText(apiKey);
|
||||||
@@ -80,7 +76,6 @@ const ApiKey = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Toggle key visibility
|
|
||||||
const toggleShowKey = () => {
|
const toggleShowKey = () => {
|
||||||
setShowKey(!showKey);
|
setShowKey(!showKey);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user