update frontend
This commit is contained in:
parent
b5db6e0ca8
commit
f2f902f24b
|
|
@ -100,7 +100,6 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
||||||
if (authenticated) setShowAuth(false);
|
if (authenticated) setShowAuth(false);
|
||||||
}, [authenticated]);
|
}, [authenticated]);
|
||||||
|
|
||||||
/* SW_URL_NOTICE:BEGIN */
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
try {
|
try {
|
||||||
const { get, qs, hs, hash } = parseMergedParams();
|
const { get, qs, hs, hash } = parseMergedParams();
|
||||||
|
|
@ -129,7 +128,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
||||||
|
|
||||||
if (truthyParam(verified)) {
|
if (truthyParam(verified)) {
|
||||||
const who = (email || uname || last?.email || last?.username || "").trim();
|
const who = (email || uname || last?.email || last?.username || "").trim();
|
||||||
setSignupInfo(`✅ Email confirmé\( {who ? ` ( \){who})` : ""}. Tu peux te connecter.`);
|
setSignupInfo("✅ Email confirmé" + (who ? " (" + who + ")" : "") + ". Tu peux te connecter.");
|
||||||
setMode("login");
|
setMode("login");
|
||||||
setShowAuth(true);
|
setShowAuth(true);
|
||||||
|
|
||||||
|
|
@ -137,7 +136,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
||||||
if (prefill) setLoginUser(prefill);
|
if (prefill) setLoginUser(prefill);
|
||||||
} else if (truthyParam(signup)) {
|
} else if (truthyParam(signup)) {
|
||||||
const who = (email || uname || last?.email || last?.username || "").trim();
|
const who = (email || uname || last?.email || last?.username || "").trim();
|
||||||
setSignupInfo(`✅ Compte créé\( {who ? ` ( \){who})` : ""}. Vérifie tes emails (et le spam), puis connecte-toi.`);
|
setSignupInfo("✅ Compte créé" + (who ? " (" + who + ")" : "") + ". Vérifie tes emails (et le spam), puis connecte-toi.");
|
||||||
setMode("login");
|
setMode("login");
|
||||||
setShowAuth(true);
|
setShowAuth(true);
|
||||||
|
|
||||||
|
|
@ -207,7 +206,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
||||||
localStorage.setItem(LAST_SIGNUP_KEY, JSON.stringify({ username: u, email: em }));
|
localStorage.setItem(LAST_SIGNUP_KEY, JSON.stringify({ username: u, email: em }));
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
||||||
setSignupInfo(`✅ Compte créé (${em}). Vérifie tes emails (spam aussi), puis connecte-toi.`);
|
setSignupInfo("✅ Compte créé (" + em + "). Vérifie tes emails (spam aussi), puis connecte-toi.");
|
||||||
setMode("login");
|
setMode("login");
|
||||||
setLoginUser(u || em);
|
setLoginUser(u || em);
|
||||||
setLoginPass("");
|
setLoginPass("");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue