From 8aa174e70c01631ae4e00a6d208966fcd77cf972 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 10 Jul 2020 10:21:46 +0200 Subject: Add implementation of portfolio and scenario UI structure --- frontend/src/util/state-utils.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 frontend/src/util/state-utils.js (limited to 'frontend/src/util/state-utils.js') diff --git a/frontend/src/util/state-utils.js b/frontend/src/util/state-utils.js new file mode 100644 index 00000000..ba248c60 --- /dev/null +++ b/frontend/src/util/state-utils.js @@ -0,0 +1,5 @@ +export const getState = (dispatch) => new Promise((resolve) => { + dispatch((dispatch, getState) => { + resolve(getState()) + }) +}) -- cgit v1.2.3