mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-11 16:49:44 +01:00
Auth: Fix switching to QR code on mobiles
This commit is contained in:
parent
7c9dc45a60
commit
22999a60e6
@ -35,6 +35,7 @@ const Auth: FC<StateProps & DispatchProps> = ({ authState, reset, initApi }) =>
|
|||||||
case 'authorizationStateWaitPhoneNumber':
|
case 'authorizationStateWaitPhoneNumber':
|
||||||
return <UiLoader page="authPhoneNumber" key="authPhoneNumber"><AuthPhoneNumber /></UiLoader>;
|
return <UiLoader page="authPhoneNumber" key="authPhoneNumber"><AuthPhoneNumber /></UiLoader>;
|
||||||
case 'authorizationStateWaitQrCode':
|
case 'authorizationStateWaitQrCode':
|
||||||
|
return <UiLoader page="authQrCode" key="authQrCode"><AuthQrCode /></UiLoader>;
|
||||||
default:
|
default:
|
||||||
return PLATFORM_ENV === 'iOS' || PLATFORM_ENV === 'Android'
|
return PLATFORM_ENV === 'iOS' || PLATFORM_ENV === 'Android'
|
||||||
? <UiLoader page="authPhoneNumber" key="authPhoneNumber"><AuthPhoneNumber /></UiLoader>
|
? <UiLoader page="authPhoneNumber" key="authPhoneNumber"><AuthPhoneNumber /></UiLoader>
|
||||||
|
Loading…
Reference in New Issue
Block a user