Добавить трёхшаговый UI регистрации

This commit is contained in:
AidarKC
2026-11-05 00:04:05 +03:00
parent c13734cbc9
commit 41d5e79f83
19 changed files with 900 additions and 170 deletions
+4
View File
@@ -457,7 +457,9 @@ function createInitialState({ withStoredSession = true } = {}) {
},
tools: normalizeToolsSettings(storedEntrySettings?.tools),
},
registrationSuccess: null,
registrationDraft: {
uiStep: 1,
flowType: '',
namespaceFeeLamports: '',
namespaceServerLogin: '',
@@ -1198,6 +1200,7 @@ export async function refreshSessions() {
export function resetRegistrationFlow() {
const next = createInitialState();
state.registrationDraft = next.registrationDraft;
state.registrationSuccess = next.registrationSuccess;
state.registrationHelp = next.registrationHelp;
state.registrationPayment = next.registrationPayment;
}
@@ -1218,6 +1221,7 @@ function resetStateForSignedOut() {
state.startHint = next.startHint;
state.entrySettings = next.entrySettings;
state.registrationDraft = next.registrationDraft;
state.registrationSuccess = next.registrationSuccess;
state.loginDraft = next.loginDraft;
state.registrationPayment = next.registrationPayment;
state.authUi = next.authUi;