From 6b2c2b8dfb86245a1747bf7977159f5129461863 Mon Sep 17 00:00:00 2001 From: Ricardo Cino Date: Thu, 23 Jun 2022 18:10:39 +0200 Subject: chore: servicesStore + models into typescript (#344) --- src/containers/auth/SetupAssistantScreen.tsx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'src/containers') diff --git a/src/containers/auth/SetupAssistantScreen.tsx b/src/containers/auth/SetupAssistantScreen.tsx index 44bd32772..8f1871776 100644 --- a/src/containers/auth/SetupAssistantScreen.tsx +++ b/src/containers/auth/SetupAssistantScreen.tsx @@ -11,22 +11,22 @@ import UserStore from '../../stores/UserStore'; interface IProps { stores: { - services?: ServicesStore, - router: RouterStore, - recipes?: RecipesStore, - user?: UserStore, - }, + services: ServicesStore; + router: RouterStore; + recipes?: RecipesStore; + user?: UserStore; + }; actions: { - user: UserStore, - service: ServicesStore, - recipe: RecipesStore, - }, + user: UserStore; + service: ServicesStore; + recipe: RecipesStore; + }; }; class SetupAssistantScreen extends Component { state = { isSettingUpServices: false, - } + }; // TODO: Why are these hardcoded here? Do they need to conform to specific services in the packaged recipes? If so, its more important to fix this services = { @@ -69,7 +69,9 @@ class SetupAssistantScreen extends Component { }; async setupServices(serviceConfig) { - const { stores: { services, router } } = this.props; + const { + stores: { services, router }, + } = this.props; this.setState({ isSettingUpServices: true, @@ -79,7 +81,7 @@ class SetupAssistantScreen extends Component { for (const config of serviceConfig) { const serviceData = { name: this.services[config.id].name, - team: config.team + team: config.team, }; await services._createService({ -- cgit v1.2.3-54-g00ecf