summaryrefslogtreecommitdiff
path: root/frontend/src/actions/modals
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-07-10 10:24:31 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:01 +0200
commit3b4e27320c479bd6ef48998f448ed070e8bd7511 (patch)
tree35ec6527e8d7a0b4093e18c8cb501c293a18b5eb /frontend/src/actions/modals
parentb30906bbe0d5f343b337a80de1b4b70ebf288331 (diff)
parent8aa174e70c01631ae4e00a6d208966fcd77cf972 (diff)
Merge pull request #8 from atlarge-research/feature/portfolios-scenarios-frontend
Portfolios and scenarios on the frontend
Diffstat (limited to 'frontend/src/actions/modals')
-rw-r--r--frontend/src/actions/modals/experiments.js14
-rw-r--r--frontend/src/actions/modals/portfolios.js14
-rw-r--r--frontend/src/actions/modals/scenarios.js14
3 files changed, 28 insertions, 14 deletions
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,
+ }
+}