mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-04-26 06:29:51 -05:00
Removed the acceptDialog from the dialog.jsx
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
import {patchRequest} from "@/common/utils/RequestUtil";
|
||||
import {t} from "i18next";
|
||||
import {Trans} from "react-i18next";
|
||||
|
||||
const OOKLA_ABOUT_URL = "https://www.speedtest.net/about";
|
||||
const OOKLA_TERMS_URL = OOKLA_ABOUT_URL + "/terms";
|
||||
const OOKLA_EULA_URL = OOKLA_ABOUT_URL + "/eula";
|
||||
const OOKLA_PRIVACY_URL = OOKLA_ABOUT_URL + "/privacy";
|
||||
|
||||
export const passwordRequiredDialog = () => ({
|
||||
title: t("dialog.password.title"),
|
||||
@@ -26,13 +19,4 @@ export const apiErrorDialog = () => ({
|
||||
buttonText: t("dialog.retry"),
|
||||
disableCloseButton: true,
|
||||
onSuccess: () => window.location.reload()
|
||||
});
|
||||
|
||||
export const acceptDialog = () => ({
|
||||
title: t("dialog.accept.title"),
|
||||
description: <Trans components={{Bold: <span className="dialog-value"/>, EULA: <a href={OOKLA_EULA_URL} target="_blank"/>,
|
||||
Privacy: <a href={OOKLA_PRIVACY_URL} target="_blank"/>, Terms: <a href={OOKLA_TERMS_URL} target="_blank"/> }}>dialog.accept.description</Trans>,
|
||||
buttonText: t("dialog.accept.button"),
|
||||
disableCloseButton: true,
|
||||
onSuccess: () => patchRequest("/config/acceptOoklaLicense", {value: true})
|
||||
});
|
||||
Reference in New Issue
Block a user