From 6fced7be27ffc4febc26a72b52fddeb9046ad2f0 Mon Sep 17 00:00:00 2001 From: jarvis2f <137974272+jarvis2f@users.noreply.github.com> Date: Sat, 28 Dec 2024 13:39:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=B1=20fix:=20Fixed=20the=20height=20is?= =?UTF-8?q?sue=20of=20adding=20account=20dialog=20on=20mobile.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/account-dialog.tsx | 225 +++++++++++++------------- 1 file changed, 115 insertions(+), 110 deletions(-) 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 && ( + + )} +
+ )} + +
);