-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved forgotYourPassword into AuthModel
- Loading branch information
Showing
2 changed files
with
7 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import { ActionType, ResetYourPassword } from "@artsy/cohesion" | ||
import { BackButton, Button, Flex, Input, Spacer, Text, useTheme } from "@artsy/palette-mobile" | ||
import { | ||
useAuthNavigation, | ||
|
@@ -8,7 +7,6 @@ import { useInputAutofocus } from "app/Scenes/Onboarding/Auth2/hooks/useInputAut | |
import { GlobalStore } from "app/store/GlobalStore" | ||
import { Formik, useFormikContext } from "formik" | ||
import { useEffect, useRef } from "react" | ||
import { useTracking } from "react-tracking" | ||
import * as Yup from "yup" | ||
|
||
interface ForgotPasswordStepFormValues { | ||
|
@@ -18,7 +16,6 @@ interface ForgotPasswordStepFormValues { | |
export const ForgotPasswordStep: React.FC = () => { | ||
const navigation = useAuthNavigation() | ||
const screen = useAuthScreen() | ||
const tracking = useTracking() | ||
|
||
return ( | ||
<Formik<ForgotPasswordStepFormValues> | ||
|
@@ -34,7 +31,6 @@ export const ForgotPasswordStep: React.FC = () => { | |
"Couldn't send reset password link. Please try again, or contact [email protected]", | ||
}) | ||
} else { | ||
tracking.trackEvent(tracks.resetYourPassword()) | ||
navigation.setParams({ requestedPasswordReset: true }) | ||
} | ||
}} | ||
|
@@ -185,10 +181,3 @@ const ForgotPasswordStepForm: React.FC = () => { | |
</Flex> | ||
) | ||
} | ||
|
||
const tracks = { | ||
resetYourPassword: (): Partial<ResetYourPassword> => ({ | ||
action: ActionType.resetYourPassword, | ||
trigger: "tap", | ||
}), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters