aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/auth/LockedScreen.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/auth/LockedScreen.tsx')
-rw-r--r--src/containers/auth/LockedScreen.tsx22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/containers/auth/LockedScreen.tsx b/src/containers/auth/LockedScreen.tsx
index e6bb5e8e4..500bff0d6 100644
--- a/src/containers/auth/LockedScreen.tsx
+++ b/src/containers/auth/LockedScreen.tsx
@@ -1,20 +1,20 @@
1import { Component } from 'react'; 1import { Component, ReactElement } from 'react';
2import { inject, observer } from 'mobx-react'; 2import { inject, observer } from 'mobx-react';
3import { SettingsStore } from 'src/stores.types';
3import Locked from '../../components/auth/Locked'; 4import Locked from '../../components/auth/Locked';
4import SettingsStore from '../../stores/SettingsStore';
5 5
6import { hash } from '../../helpers/password-helpers'; 6import { hash } from '../../helpers/password-helpers';
7import UserStore from '../../stores/UserStore'; 7import UserStore from '../../stores/UserStore';
8 8
9interface IProps { 9interface IProps {
10 actions: { 10 actions: {
11 settings: SettingsStore, 11 settings: SettingsStore;
12 }, 12 };
13 stores: { 13 stores: {
14 settings: SettingsStore, 14 settings: SettingsStore;
15 user: UserStore, 15 user: UserStore;
16 } 16 };
17}; 17}
18 18
19class LockedScreen extends Component<IProps> { 19class LockedScreen extends Component<IProps> {
20 state = { 20 state = {
@@ -28,7 +28,7 @@ class LockedScreen extends Component<IProps> {
28 this.unlock = this.unlock.bind(this); 28 this.unlock = this.unlock.bind(this);
29 } 29 }
30 30
31 onSubmit(values) { 31 onSubmit(values): void {
32 const { password } = values; 32 const { password } = values;
33 33
34 let correctPassword = this.props.stores.settings.all.app.lockedPassword; 34 let correctPassword = this.props.stores.settings.all.app.lockedPassword;
@@ -52,7 +52,7 @@ class LockedScreen extends Component<IProps> {
52 } 52 }
53 } 53 }
54 54
55 unlock() { 55 unlock(): void {
56 this.props.actions.settings.update({ 56 this.props.actions.settings.update({
57 type: 'app', 57 type: 'app',
58 data: { 58 data: {
@@ -61,7 +61,7 @@ class LockedScreen extends Component<IProps> {
61 }); 61 });
62 } 62 }
63 63
64 render() { 64 render(): ReactElement {
65 const { stores } = this.props; 65 const { stores } = this.props;
66 const { useTouchIdToUnlock } = this.props.stores.settings.all.app; 66 const { useTouchIdToUnlock } = this.props.stores.settings.all.app;
67 67