mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-02-12 16:50:22 -06:00
Moved ConfigContext.jsx dialog -> dialog.jsx
This commit is contained in:
12
client/src/common/contexts/Config/dialog.jsx
Normal file
12
client/src/common/contexts/Config/dialog.jsx
Normal file
@@ -0,0 +1,12 @@
|
||||
export const passwordRequiredDialog = {
|
||||
title: "Passwort erforderlich",
|
||||
placeholder: "Dein Passwort",
|
||||
description: localStorage.getItem("password") ? <span className="icon-red">Das von dir eingegebene Passwort ist falsch</span> : "",
|
||||
type: "password",
|
||||
buttonText: "Fertig",
|
||||
onClose: () => window.location.reload(),
|
||||
onSuccess: (value) => {
|
||||
localStorage.setItem("password", value);
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user