refactor: replace 'Done' button with standard 'Save' button in endpoint speed test

- Import Save icon from lucide-react
- Replace endpointTest.done translation key with common.save for consistency
- Add Save icon to button with flex layout matching other save buttons in the app
This commit is contained in:
Jason
2025-10-08 11:29:34 +08:00
parent 3f3905fda0
commit 75ce5a0723

View File

@@ -1,6 +1,6 @@
import React, { useCallback, useEffect, useMemo, useState } from "react"; import React, { useCallback, useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { Zap, Loader2, Plus, X, AlertCircle } from "lucide-react"; import { Zap, Loader2, Plus, X, AlertCircle, Save } from "lucide-react";
import { isLinux } from "../../lib/platform"; import { isLinux } from "../../lib/platform";
import type { AppType } from "../../lib/tauri-api"; import type { AppType } from "../../lib/tauri-api";
@@ -609,9 +609,10 @@ const EndpointSpeedTest: React.FC<EndpointSpeedTestProps> = ({
<button <button
type="button" type="button"
onClick={onClose} onClick={onClose}
className="px-4 py-2 bg-blue-500 dark:bg-blue-600 text-white rounded-lg hover:bg-blue-600 dark:hover:bg-blue-700 transition-colors text-sm font-medium" className="px-4 py-2 bg-blue-500 dark:bg-blue-600 text-white rounded-lg hover:bg-blue-600 dark:hover:bg-blue-700 transition-colors text-sm font-medium flex items-center gap-2"
> >
{t("endpointTest.done")} <Save className="w-4 h-4" />
{t("common.save")}
</button> </button>
</div> </div>
</div> </div>