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/ImportScreen.tsx | 19 ++++---------------
 1 file changed, 4 insertions(+), 15 deletions(-)

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

diff --git a/src/containers/auth/ImportScreen.tsx b/src/containers/auth/ImportScreen.tsx
index 8d318cb2d..c128dec14 100644
--- a/src/containers/auth/ImportScreen.tsx
+++ b/src/containers/auth/ImportScreen.tsx
@@ -1,21 +1,10 @@
-import { Component } from 'react';
+import { Component, ReactElement } from 'react';
 import { inject, observer } from 'mobx-react';
-import { RouterStore } from 'mobx-react-router';
-import { UserStore } from 'src/stores.types';
+import { DefaultProps } from 'src/@types/ferdium-components.types';
 import Import from '../../components/auth/Import';
 
-interface IProps {
-  actions: {
-    user: UserStore;
-  };
-  stores: {
-    user: UserStore;
-    router: RouterStore;
-  };
-}
-
-class ImportScreen extends Component<IProps> {
-  render() {
+class ImportScreen extends Component<DefaultProps> {
+  render(): ReactElement {
     const { actions, stores } = this.props;
 
     if (stores.user.isImportLegacyServicesCompleted) {
-- 
cgit v1.2.3-70-g09d2

