diff --git a/apps/mobile/app/components/auth/auth-modal.js b/apps/mobile/app/components/auth/auth-modal.js index 3f81926aa..d60f9cf40 100644 --- a/apps/mobile/app/components/auth/auth-modal.js +++ b/apps/mobile/app/components/auth/auth-modal.js @@ -19,9 +19,6 @@ along with this program. If not, see . import { useThemeColors } from "@notesnook/theme"; import React, { useEffect, useRef, useState } from "react"; -import { Platform, View } from "react-native"; -import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view"; -import useGlobalSafeAreaInsets from "../../hooks/use-global-safe-area-insets"; import { eSubscribeEvent, eUnSubscribeEvent @@ -31,9 +28,7 @@ import { eCloseLoginDialog, eOpenLoginDialog } from "../../utils/events"; import { sleep } from "../../utils/time"; import BaseDialog from "../dialog/base-dialog"; import { Toast } from "../toast"; -import { Button } from "../ui/button"; -import { IconButton } from "../ui/icon-button"; -import { hideAuth, initialAuthMode } from "./common"; +import { initialAuthMode } from "./common"; import { Login } from "./login"; import { Signup } from "./signup"; import { strings } from "@notesnook/intl"; @@ -51,7 +46,6 @@ const AuthModal = () => { const [visible, setVisible] = useState(false); const [currentAuthMode, setCurrentAuthMode] = useState(AuthMode.login); const actionSheetRef = useRef(); - const insets = useGlobalSafeAreaInsets(); useEffect(() => { eSubscribeEvent(eOpenLoginDialog, open); @@ -99,81 +93,18 @@ const AuthModal = () => { centered={false} enableSheetKeyboardHandler > - - {currentAuthMode !== AuthMode.login ? ( - setCurrentAuthMode(mode)} - trial={AuthMode.trialSignup === currentAuthMode} - welcome={initialAuthMode.current === AuthMode.welcomeSignup} - /> - ) : ( - setCurrentAuthMode(mode)} - /> - )} - - - - - {initialAuthMode.current === AuthMode.welcomeSignup ? null : ( - { - hideAuth(); - }} - color={colors.primary.paragraph} - /> - )} - - {initialAuthMode.current !== AuthMode.welcomeSignup ? null : ( -