From b76ae7ccbaf40c79d333eee62c9935737364a335 Mon Sep 17 00:00:00 2001 From: kunal prakash Date: Apr 24 2021 18:19:17 +0000 Subject: Added spin loader to wizard section i.e /wizard route --- diff --git a/src/reducers/index.js b/src/reducers/index.js index 5e628e0..5fea4bb 100644 --- a/src/reducers/index.js +++ b/src/reducers/index.js @@ -15,6 +15,7 @@ const defaultState = { actions: [], providers: [], all_actions: [], + isLoading: true, }, } @@ -33,6 +34,7 @@ export default (state = defaultState, action) => { ...state.wizard, providers: action.payload.providers, all_actions: action.payload.actions, + isLoading: false, }, } diff --git a/src/wizard/Wizard.js b/src/wizard/Wizard.js index a9ecb3e..71ebbb9 100644 --- a/src/wizard/Wizard.js +++ b/src/wizard/Wizard.js @@ -17,14 +17,6 @@ class Wizard extends Component { } componentDidMount() { - fetch(oraculumApiUrl_v1 + "actions/all") - .then((resp) => resp.json()) - .then((data) => { - this.setState({ - providers: data.providers, - all_actions: data.actions, - }) - }) this.props.dispatch(loadWizardData()) } @@ -35,7 +27,7 @@ class Wizard extends Component { render() { return ( - +