From 2d71e61e46394d75d9f52ba1f4c273ed6d3c9cfd Mon Sep 17 00:00:00 2001
From: Ricardo Cino <ricardo@cino.io>
Date: Fri, 24 Jun 2022 21:25:05 +0200
Subject: chore: convert the last few stores to typescript

---
 src/containers/auth/LockedScreen.tsx | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

(limited to 'src/containers/auth/LockedScreen.tsx')

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 @@
-import { Component } from 'react';
+import { Component, ReactElement } from 'react';
 import { inject, observer } from 'mobx-react';
+import { SettingsStore } from 'src/stores.types';
 import Locked from '../../components/auth/Locked';
-import SettingsStore from '../../stores/SettingsStore';
 
 import { hash } from '../../helpers/password-helpers';
 import UserStore from '../../stores/UserStore';
 
 interface IProps {
   actions: {
-    settings: SettingsStore,
-  },
+    settings: SettingsStore;
+  };
   stores: {
-    settings: SettingsStore,
-    user: UserStore,
-  }
-};
+    settings: SettingsStore;
+    user: UserStore;
+  };
+}
 
 class LockedScreen extends Component<IProps> {
   state = {
@@ -28,7 +28,7 @@ class LockedScreen extends Component<IProps> {
     this.unlock = this.unlock.bind(this);
   }
 
-  onSubmit(values) {
+  onSubmit(values): void {
     const { password } = values;
 
     let correctPassword = this.props.stores.settings.all.app.lockedPassword;
@@ -52,7 +52,7 @@ class LockedScreen extends Component<IProps> {
     }
   }
 
-  unlock() {
+  unlock(): void {
     this.props.actions.settings.update({
       type: 'app',
       data: {
@@ -61,7 +61,7 @@ class LockedScreen extends Component<IProps> {
     });
   }
 
-  render() {
+  render(): ReactElement {
     const { stores } = this.props;
     const { useTouchIdToUnlock } = this.props.stores.settings.all.app;
 
-- 
cgit v1.2.3-70-g09d2

