diff --git a/src/components/proxy-import-dialog.tsx b/src/components/proxy-import-dialog.tsx
index 086b561..89d5224 100644
--- a/src/components/proxy-import-dialog.tsx
+++ b/src/components/proxy-import-dialog.tsx
@@ -69,7 +69,7 @@ export function ProxyImportDialog({ isOpen, onClose }: ProxyImportDialogProps) {
}, []);
const processContent = useCallback(
- async (content: string, isJson: boolean, _filename: string = "") => {
+ async (content: string, isJson: boolean, _filename = "") => {
try {
if (isJson) {
setIsImporting(true);
@@ -180,7 +180,7 @@ export function ProxyImportDialog({ isOpen, onClose }: ProxyImportDialogProps) {
useEffect(() => {
if (!isOpen || step !== "dropzone") return;
- const handlePaste = async (e: ClipboardEvent) => {
+ const handlePaste = (e: ClipboardEvent) => {
const text = e.clipboardData?.getData("text");
if (text) {
// Try to detect if it's JSON
@@ -189,7 +189,7 @@ export function ProxyImportDialog({ isOpen, onClose }: ProxyImportDialogProps) {
(trimmed.startsWith("{") && trimmed.endsWith("}")) ||
(trimmed.startsWith("[") && trimmed.endsWith("]"));
// Use "pasted.txt" as filename to trigger content-based detection
- await processContent(text, isJson, "pasted.txt");
+ void processContent(text, isJson, "pasted.txt");
}
};
@@ -339,7 +339,9 @@ export function ProxyImportDialog({ isOpen, onClose }: ProxyImportDialogProps) {
id="name-prefix"
placeholder="Imported"
value={namePrefix}
- onChange={(e) => setNamePrefix(e.target.value)}
+ onChange={(e) => {
+ setNamePrefix(e.target.value);
+ }}
/>
Proxies will be named "{namePrefix || "Imported"} Proxy
@@ -408,9 +410,9 @@ export function ProxyImportDialog({ isOpen, onClose }: ProxyImportDialogProps) {
type="radio"
name={`format-${i}`}
checked={proxy.selectedFormat === format}
- onChange={() =>
- handleAmbiguousFormatSelect(i, format)
- }
+ onChange={() => {
+ handleAmbiguousFormatSelect(i, format);
+ }}
className="accent-primary"
/>
{format}
diff --git a/src/components/proxy-management-dialog.tsx b/src/components/proxy-management-dialog.tsx
index d2ee703..5a5bf92 100644
--- a/src/components/proxy-management-dialog.tsx
+++ b/src/components/proxy-management-dialog.tsx
@@ -389,7 +389,9 @@ export function ProxyManagementDialog({
setShowImportDialog(true)}
+ onClick={() => {
+ setShowImportDialog(true);
+ }}
className="flex gap-2 items-center"
>
@@ -398,7 +400,9 @@ export function ProxyManagementDialog({
setShowExportDialog(true)}
+ onClick={() => {
+ setShowExportDialog(true);
+ }}
className="flex gap-2 items-center"
disabled={storedProxies.length === 0}
>
@@ -487,7 +491,7 @@ export function ProxyManagementDialog({
- handleToggleSync(proxy)
+ void handleToggleSync(proxy)
}
disabled={
isTogglingSync[proxy.id] ||
@@ -542,9 +546,9 @@ export function ProxyManagementDialog({
@@ -559,9 +563,9 @@ export function ProxyManagementDialog({