Chore: Evaluate ScreenLockConfigView - TypeScript (#4094)
This commit is contained in:
parent
57154101bd
commit
d24e59669a
|
@ -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 { BIOMETRY_ENABLED_KEY, DEFAULT_AUTO_LOCK, themes, SWITCH_TRACK_COLOR } from '../lib/constants';
|
||||||
import SafeAreaView from '../containers/SafeAreaView';
|
import SafeAreaView from '../containers/SafeAreaView';
|
||||||
import { events, logEvent } from '../utils/log';
|
import { events, logEvent } from '../utils/log';
|
||||||
import { TServerModel } from '../definitions/IServer';
|
|
||||||
import userPreferences from '../lib/methods/userPreferences';
|
import userPreferences from '../lib/methods/userPreferences';
|
||||||
|
import { IApplicationState, TServerModel } from '../definitions';
|
||||||
|
|
||||||
const DEFAULT_BIOMETRY = false;
|
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,
|
server: state.server.server,
|
||||||
Force_Screen_Lock: state.settings.Force_Screen_Lock,
|
Force_Screen_Lock: state.settings.Force_Screen_Lock as boolean,
|
||||||
Force_Screen_Lock_After: state.settings.Force_Screen_Lock_After
|
Force_Screen_Lock_After: state.settings.Force_Screen_Lock_After as number
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(mapStateToProps)(withTheme(ScreenLockConfigView));
|
export default connect(mapStateToProps)(withTheme(ScreenLockConfigView));
|
||||||
|
|
Loading…
Reference in New Issue