CLEANUP Schedule modal now using redux. Deleted manual schedule modal. To be incorporated into generic.
This commit is contained in:
@@ -12,7 +12,8 @@ const INITIAL_STATE = {
|
||||
jobLineEdit: { ...baseModal },
|
||||
invoiceEnter: { ...baseModal },
|
||||
courtesyCarReturn: { ...baseModal },
|
||||
noteUpsert: { ...baseModal }
|
||||
noteUpsert: { ...baseModal },
|
||||
schedule: { ...baseModal }
|
||||
};
|
||||
|
||||
const modalsReducer = (state = INITIAL_STATE, action) => {
|
||||
|
||||
@@ -21,3 +21,8 @@ export const selectNoteUpsert = createSelector(
|
||||
[selectModals],
|
||||
modals => modals.noteUpsert
|
||||
);
|
||||
|
||||
export const selectSchedule = createSelector(
|
||||
[selectModals],
|
||||
modals => modals.schedule
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user