Chore: Evaluate ScreenLockConfigView - TypeScript (#4094)

This commit is contained in:
Reinaldo Neto 2022-05-02 23:14:49 -03:00 committed by GitHub
parent 57154101bd
commit d24e59669a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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<IScreenLockConfigViewProps, I
}
}
const mapStateToProps = (state: any) => ({
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));