summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/reducers/modals.js
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-13 16:35:01 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-17 17:06:50 +0200
commit1891a6f3963d3ddeae0ea093f9a7e3608a97b4d7 (patch)
tree5fe20a483d7e51e25a7e0759d21981e38844f139 /opendc-web/opendc-web-ui/src/reducers/modals.js
parent24147cba0f5723be3525e8f40d1954144841629b (diff)
ui: Simplify projects page
This change simplifies the logic and components of the projects page and reduces its dependency on Redux for simple operations.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/reducers/modals.js')
-rw-r--r--opendc-web/opendc-web-ui/src/reducers/modals.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/opendc-web/opendc-web-ui/src/reducers/modals.js b/opendc-web/opendc-web-ui/src/reducers/modals.js
index e600d556..a58d8708 100644
--- a/opendc-web/opendc-web-ui/src/reducers/modals.js
+++ b/opendc-web/opendc-web-ui/src/reducers/modals.js
@@ -1,5 +1,4 @@
import { combineReducers } from 'redux'
-import { CLOSE_NEW_PROJECT_MODAL, OPEN_NEW_PROJECT_MODAL } from '../actions/modals/projects'
import {
CLOSE_NEW_TOPOLOGY_MODAL,
CLOSE_DELETE_MACHINE_MODAL,
@@ -31,7 +30,6 @@ function modal(openAction, closeAction) {
}
export const modals = combineReducers({
- newProjectModalVisible: modal(OPEN_NEW_PROJECT_MODAL, CLOSE_NEW_PROJECT_MODAL),
changeTopologyModalVisible: modal(OPEN_NEW_TOPOLOGY_MODAL, CLOSE_NEW_TOPOLOGY_MODAL),
editRoomNameModalVisible: modal(OPEN_EDIT_ROOM_NAME_MODAL, CLOSE_EDIT_ROOM_NAME_MODAL),
deleteRoomModalVisible: modal(OPEN_DELETE_ROOM_MODAL, CLOSE_DELETE_ROOM_MODAL),