diff --git a/apps/mobile/app/components/auth/two-factor.js b/apps/mobile/app/components/auth/two-factor.js index c9a9b0f14..38da96e01 100644 --- a/apps/mobile/app/components/auth/two-factor.js +++ b/apps/mobile/app/components/auth/two-factor.js @@ -40,7 +40,7 @@ import { useCallback } from "react"; import { ScrollView } from "react-native-actions-sheet"; import { strings } from "@notesnook/intl"; -const TwoFactorVerification = ({ onMfaLogin, mfaInfo }) => { +const TwoFactorVerification = ({ onMfaLogin, mfaInfo, onCancel }) => { const { colors } = useThemeColors(); const code = useRef(); const [currentMethod, setCurrentMethod] = useState({ @@ -138,7 +138,8 @@ const TwoFactorVerification = ({ onMfaLogin, mfaInfo }) => { { strings.select2faCodeHelpText()} - - {currentMethod.method === "sms" || currentMethod.method === "email" ? (