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/actions/modals/experiments.js | 14 -------------- frontend/src/actions/modals/portfolios.js | 14 ++++++++++++++ frontend/src/actions/modals/scenarios.js | 14 ++++++++++++++ 3 files changed, 28 insertions(+), 14 deletions(-) delete mode 100644 frontend/src/actions/modals/experiments.js create mode 100644 frontend/src/actions/modals/portfolios.js create mode 100644 frontend/src/actions/modals/scenarios.js (limited to 'frontend/src/actions/modals') diff --git a/frontend/src/actions/modals/experiments.js b/frontend/src/actions/modals/experiments.js deleted file mode 100644 index 37f1922f..00000000 --- a/frontend/src/actions/modals/experiments.js +++ /dev/null @@ -1,14 +0,0 @@ -export const OPEN_NEW_EXPERIMENT_MODAL = 'OPEN_NEW_EXPERIMENT_MODAL' -export const CLOSE_NEW_EXPERIMENT_MODAL = 'CLOSE_EXPERIMENT_MODAL' - -export function openNewExperimentModal() { - return { - type: OPEN_NEW_EXPERIMENT_MODAL, - } -} - -export function closeNewExperimentModal() { - return { - type: CLOSE_NEW_EXPERIMENT_MODAL, - } -} diff --git a/frontend/src/actions/modals/portfolios.js b/frontend/src/actions/modals/portfolios.js new file mode 100644 index 00000000..f6dce2e3 --- /dev/null +++ b/frontend/src/actions/modals/portfolios.js @@ -0,0 +1,14 @@ +export const OPEN_NEW_PORTFOLIO_MODAL = 'OPEN_NEW_PORTFOLIO_MODAL' +export const CLOSE_NEW_PORTFOLIO_MODAL = 'CLOSE_PORTFOLIO_MODAL' + +export function openNewPortfolioModal() { + return { + type: OPEN_NEW_PORTFOLIO_MODAL, + } +} + +export function closeNewPortfolioModal() { + return { + type: CLOSE_NEW_PORTFOLIO_MODAL, + } +} diff --git a/frontend/src/actions/modals/scenarios.js b/frontend/src/actions/modals/scenarios.js new file mode 100644 index 00000000..b71cb27b --- /dev/null +++ b/frontend/src/actions/modals/scenarios.js @@ -0,0 +1,14 @@ +export const OPEN_NEW_SCENARIO_MODAL = 'OPEN_NEW_SCENARIO_MODAL' +export const CLOSE_NEW_SCENARIO_MODAL = 'CLOSE_SCENARIO_MODAL' + +export function openNewScenarioModal() { + return { + type: OPEN_NEW_SCENARIO_MODAL, + } +} + +export function closeNewScenarioModal() { + return { + type: CLOSE_NEW_SCENARIO_MODAL, + } +} -- cgit v1.2.3