From d24e59669a9bd5c337e36782078dce2cd7a3e030 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Mon, 2 May 2022 23:14:49 -0300 Subject: [PATCH] Chore: Evaluate ScreenLockConfigView - TypeScript (#4094) --- app/views/ScreenLockConfigView.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/ScreenLockConfigView.tsx b/app/views/ScreenLockConfigView.tsx index de32c9121..2bc7e9035 100644 --- a/app/views/ScreenLockConfigView.tsx +++ b/app/views/ScreenLockConfigView.tsx @@ -13,8 +13,8 @@ import { changePasscode, checkHasPasscode, supportedBiometryLabel } from '../uti import { BIOMETRY_ENABLED_KEY, DEFAULT_AUTO_LOCK, themes, SWITCH_TRACK_COLOR } from '../lib/constants'; import SafeAreaView from '../containers/SafeAreaView'; import { events, logEvent } from '../utils/log'; -import { TServerModel } from '../definitions/IServer'; import userPreferences from '../lib/methods/userPreferences'; +import { IApplicationState, TServerModel } from '../definitions'; const DEFAULT_BIOMETRY = false; @@ -271,10 +271,10 @@ class ScreenLockConfigView extends React.Component ({ +const mapStateToProps = (state: IApplicationState) => ({ server: state.server.server, - Force_Screen_Lock: state.settings.Force_Screen_Lock, - Force_Screen_Lock_After: state.settings.Force_Screen_Lock_After + Force_Screen_Lock: state.settings.Force_Screen_Lock as boolean, + Force_Screen_Lock_After: state.settings.Force_Screen_Lock_After as number }); export default connect(mapStateToProps)(withTheme(ScreenLockConfigView));