style: format code with consistent spacing and line breaks

This commit is contained in:
Jason
2025-10-30 15:31:08 +08:00
parent 8e4a0a1bbb
commit 55223bdd46
11 changed files with 37 additions and 34 deletions

View File

@@ -313,15 +313,7 @@ const EndpointSpeedTest: React.FC<EndpointSpeedTestProps> = ({
setAddError(message || t("endpointTest.saveFailed"));
console.error(t("endpointTest.addEndpointFailed"), error);
}
}, [
customUrl,
entries,
normalizedSelected,
onChange,
appId,
providerId,
t,
]);
}, [customUrl, entries, normalizedSelected, onChange, appId, providerId, t]);
const handleRemoveEndpoint = useCallback(
async (entry: EndpointEntry) => {

View File

@@ -53,7 +53,12 @@ export function useApiKeyLink({
}, [selectedPresetId, presetEntries, formWebsiteUrl]);
return {
shouldShowApiKeyLink: appId === "claude" ? shouldShowApiKeyLink : appId === "codex" ? shouldShowApiKeyLink : false,
shouldShowApiKeyLink:
appId === "claude"
? shouldShowApiKeyLink
: appId === "codex"
? shouldShowApiKeyLink
: false,
websiteUrl: getWebsiteUrl,
};
}