diff --git a/web/src/components/account-dialog.tsx b/web/src/components/account-dialog.tsx index 86ae891..a5fb37e 100644 --- a/web/src/components/account-dialog.tsx +++ b/web/src/components/account-dialog.tsx @@ -185,7 +185,7 @@ export function AccountDialog({ {children} @@ -195,121 +195,126 @@ export function AccountDialog({

- {!debounceIsCreateMutating && !initSuccessfully && ( -
- -
- )} - {debounceIsCreateMutating && ( -
- Initializing account, please wait - -
- )} - {!debounceIsCreateMutating && createError && ( -
- 😲 - Initializing account failed, please try again later. -
- )} - {!debounceIsCreateMutating && initSuccessfully && ( -
- {authState === TelegramConstructor.WAIT_PHONE_NUMBER && ( -
- -

- Should with country code like: 8613712345678 -

- setPhoneNumber(e.target.value)} - disabled={isMethodExecuting} - required - /> -
- )} - {authState === TelegramConstructor.WAIT_CODE && ( -
- -

- Please enter the code sent to your telegram account. -

- setCode(value)} - > - - - - - - - - -
- )} - {authState === TelegramConstructor.WAIT_PASSWORD && ( -
- -

- You have enabled two-step verification, please enter your - password. -

- setPassword(e.target.value)} - disabled={isMethodExecuting} - required - /> -
- )} - {authState && ( +
+ {!debounceIsCreateMutating && !initSuccessfully && ( +
- )} - - )} - +
+ )} + {debounceIsCreateMutating && ( +
+ Initializing account, please wait + +
+ )} + {!debounceIsCreateMutating && createError && ( +
+ 😲 + Initializing account failed, please try again later. +
+ )} + {!debounceIsCreateMutating && initSuccessfully && ( +
+ {authState === TelegramConstructor.WAIT_PHONE_NUMBER && ( +
+ +

+ Should with country code like: 8613712345678 +

+ setPhoneNumber(e.target.value)} + disabled={isMethodExecuting} + required + /> +
+ )} + {authState === TelegramConstructor.WAIT_CODE && ( +
+ +

+ Please enter the code sent to your telegram account. +

+ setCode(value)} + > + + + + + + + + +
+ )} + {authState === TelegramConstructor.WAIT_PASSWORD && ( +
+ +

+ You have enabled two-step verification, please enter your + password. +

+ setPassword(e.target.value)} + disabled={isMethodExecuting} + required + /> +
+ )} + {authState && ( + + )} +
+ )} + +
);