23 lines
734 B
TypeScript
23 lines
734 B
TypeScript
// Metro module 9177 (f9178).
|
|
import { AnalyticEvents } from "../../Constants";
|
|
import AnalyticsUtils from "../../utils/AnalyticsUtils";
|
|
import ModalActionCreators from "../ModalActionCreators";
|
|
import Dispatcher from "../../Dispatcher";
|
|
let c6023_4 = "EMAIL_VERIFICATION_MODAL_KEY";
|
|
const r18 = {
|
|
open: function(isChangeEmail = false) {
|
|
if (isChangeEmail) {
|
|
AnalyticsUtils.track(AnalyticEvents.USER_ACCOUNT_EMAIL_CHANGE_ATTEMPTED);
|
|
}
|
|
ModalActionCreators.pushLazy(import("../../modules/verification/native/components/EmailVerificationModal"), {
|
|
isChangeEmail
|
|
}, c6023_4);
|
|
},
|
|
close: () => {
|
|
Dispatcher.wait(() => {
|
|
ModalActionCreators.popWithKey(c6023_4);
|
|
});
|
|
}
|
|
};
|
|
export default r18;
|