SHA256
Добавить трёхшаговый UI регистрации
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user