import { ScreenName } from '@ulangi/ulangi-common/enums' ; import { boundClass } from 'autobind-decorator' ; import { NavigatorDelegate } from '../navigator/NavigatorDelegate' ; @ boundClass export class SecurityScreenDelegate { private navigatorDelegate : NavigatorDelegate ; public constructor ( navigatorDelegate ) { this . navigatorDelegate = navigatorDelegate ; } public navigateToChangeEmailScreen ( ) { this . navigatorDelegate . push ( ScreenName . CHANGE_EMAIL_SCREEN , { } ) ; } public navigateToChangePasswordScreen ( ) { this . navigatorDelegate . push ( ScreenName . CHANGE_PASSWORD_SCREEN , { } ) ; } }