diff options
Diffstat (limited to 'src/containers/auth')
-rw-r--r-- | src/containers/auth/ImportScreen.tsx | 12 | ||||
-rw-r--r-- | src/containers/auth/LockedScreen.tsx | 22 | ||||
-rw-r--r-- | src/containers/auth/PasswordScreen.tsx | 10 |
3 files changed, 22 insertions, 22 deletions
diff --git a/src/containers/auth/ImportScreen.tsx b/src/containers/auth/ImportScreen.tsx index 756a2e59c..8d318cb2d 100644 --- a/src/containers/auth/ImportScreen.tsx +++ b/src/containers/auth/ImportScreen.tsx | |||
@@ -1,17 +1,17 @@ | |||
1 | import { Component } from 'react'; | 1 | import { Component } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { RouterStore } from 'mobx-react-router'; | 3 | import { RouterStore } from 'mobx-react-router'; |
4 | import { UserStore } from 'src/stores.types'; | ||
4 | import Import from '../../components/auth/Import'; | 5 | import Import from '../../components/auth/Import'; |
5 | import UserStore from '../../stores/UserStore'; | ||
6 | 6 | ||
7 | interface IProps { | 7 | interface IProps { |
8 | actions: { | 8 | actions: { |
9 | user: UserStore, | 9 | user: UserStore; |
10 | }, | 10 | }; |
11 | stores: { | 11 | stores: { |
12 | user: UserStore, | 12 | user: UserStore; |
13 | router: RouterStore, | 13 | router: RouterStore; |
14 | } | 14 | }; |
15 | } | 15 | } |
16 | 16 | ||
17 | class ImportScreen extends Component<IProps> { | 17 | class ImportScreen extends Component<IProps> { |
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 @@ | |||
1 | import { Component } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { SettingsStore } from 'src/stores.types'; | ||
3 | import Locked from '../../components/auth/Locked'; | 4 | import Locked from '../../components/auth/Locked'; |
4 | import SettingsStore from '../../stores/SettingsStore'; | ||
5 | 5 | ||
6 | import { hash } from '../../helpers/password-helpers'; | 6 | import { hash } from '../../helpers/password-helpers'; |
7 | import UserStore from '../../stores/UserStore'; | 7 | import UserStore from '../../stores/UserStore'; |
8 | 8 | ||
9 | interface IProps { | 9 | interface 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 | ||
19 | class LockedScreen extends Component<IProps> { | 19 | class 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 | ||
diff --git a/src/containers/auth/PasswordScreen.tsx b/src/containers/auth/PasswordScreen.tsx index 864a11fa7..d88549712 100644 --- a/src/containers/auth/PasswordScreen.tsx +++ b/src/containers/auth/PasswordScreen.tsx | |||
@@ -1,15 +1,15 @@ | |||
1 | import { Component } from 'react'; | 1 | import { Component } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { UserStore } from 'src/stores.types'; | ||
3 | import Password from '../../components/auth/Password'; | 4 | import Password from '../../components/auth/Password'; |
4 | import UserStore from '../../stores/UserStore'; | ||
5 | 5 | ||
6 | interface IProps { | 6 | interface IProps { |
7 | actions: { | 7 | actions: { |
8 | user: UserStore, | 8 | user: UserStore; |
9 | }, | 9 | }; |
10 | stores: { | 10 | stores: { |
11 | user: UserStore, | 11 | user: UserStore; |
12 | } | 12 | }; |
13 | }; | 13 | }; |
14 | 14 | ||
15 | class PasswordScreen extends Component<IProps> { | 15 | class PasswordScreen extends Component<IProps> { |