added button to turn off hwid sending

This commit is contained in:
coolcoala
2025-07-18 04:17:58 +03:00
parent 8bc7a6c3e1
commit ac3163d061
3 changed files with 24 additions and 13 deletions

View File

@@ -43,6 +43,7 @@ import {
Power,
BellOff,
Repeat,
Fingerprint
} from "lucide-react";
// Модальные окна
@@ -390,6 +391,22 @@ const SettingSystem = ({ onError }: Props) => {
</Select>
</GuardState>
</SettingRow>
<SettingRow
label={<LabelWithIcon icon={Fingerprint} text={t("Send HWID")} />}
>
<GuardState
value={verge?.enable_send_hwid ?? true} // По умолчанию включено
valueProps="checked"
onChangeProps="onCheckedChange"
onFormat={onSwitchFormat}
onChange={(e) => onChangeData({ enable_send_hwid: e })}
onGuard={(e) => patchVerge({ enable_send_hwid: e })}
onCatch={onError}
>
<Switch />
</GuardState>
</SettingRow>
</div>
</div>
);