From 6bff2bb5439d25e0ab2a24a8ca1b28b89ef40ff9 Mon Sep 17 00:00:00 2001
From: Ricardo Cino <ricardo@cino.io>
Date: Sun, 26 Jun 2022 23:59:32 +0200
Subject: chore: turned all auth containers into typescript (#375)

---
 src/containers/auth/SetupAssistantScreen.tsx | 27 +++++----------------------
 1 file changed, 5 insertions(+), 22 deletions(-)

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

diff --git a/src/containers/auth/SetupAssistantScreen.tsx b/src/containers/auth/SetupAssistantScreen.tsx
index 8f1871776..92f12c0bc 100644
--- a/src/containers/auth/SetupAssistantScreen.tsx
+++ b/src/containers/auth/SetupAssistantScreen.tsx
@@ -1,29 +1,12 @@
 /* eslint-disable no-await-in-loop */
-import { Component } from 'react';
+import { Component, ReactElement } from 'react';
 import { inject, observer } from 'mobx-react';
 
-import { RouterStore } from 'mobx-react-router';
+import { DefaultProps } from 'src/@types/ferdium-components.types';
 import { sleep } from '../../helpers/async-helpers';
 import SetupAssistant from '../../components/auth/SetupAssistant';
-import ServicesStore from '../../stores/ServicesStore';
-import RecipesStore from '../../stores/RecipesStore';
-import UserStore from '../../stores/UserStore';
 
-interface IProps {
-  stores: {
-    services: ServicesStore;
-    router: RouterStore;
-    recipes?: RecipesStore;
-    user?: UserStore;
-  };
-  actions: {
-    user: UserStore;
-    service: ServicesStore;
-    recipe: RecipesStore;
-  };
-};
-
-class SetupAssistantScreen extends Component<IProps> {
+class SetupAssistantScreen extends Component<DefaultProps> {
   state = {
     isSettingUpServices: false,
   };
@@ -68,7 +51,7 @@ class SetupAssistantScreen extends Component<IProps> {
     },
   };
 
-  async setupServices(serviceConfig) {
+  async setupServices(serviceConfig: any): Promise<void> {
     const {
       stores: { services, router },
     } = this.props;
@@ -103,7 +86,7 @@ class SetupAssistantScreen extends Component<IProps> {
     router.push('/');
   }
 
-  render() {
+  render(): ReactElement {
     return (
       <SetupAssistant
         onSubmit={config => this.setupServices(config)}
-- 
cgit v1.2.3-54-g00ecf

