Refactored job line edit modal to use redux so that it can be an independent form. Created general modals reducer to manage all modals.
This commit is contained in:
9
client/src/redux/modals/modals.selectors.js
Normal file
9
client/src/redux/modals/modals.selectors.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { createSelector } from "reselect";
|
||||
|
||||
const selectModals = state => state.modals;
|
||||
|
||||
export const selectJobLineEditModal = createSelector(
|
||||
[selectModals],
|
||||
modals => modals.jobLineEdit
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user