diff --git a/src/components/selectRangeUsePlanPage/CreateReplacementPlan.js b/src/components/selectRangeUsePlanPage/CreateReplacementPlan.js
new file mode 100644
index 00000000..6f835b9c
--- /dev/null
+++ b/src/components/selectRangeUsePlanPage/CreateReplacementPlan.js
@@ -0,0 +1,23 @@
+import { useHistory } from 'react-router-dom';
+import React from 'react';
+import { MenuItem } from '@material-ui/core';
+import { createReplacementPlan } from '../../api';
+import { RANGE_USE_PLAN } from '../../constants/routes';
+
+const CreateReplacementPlan = ({ planId }) => {
+ const history = useHistory();
+ return (
+
+ );
+};
+
+export default CreateReplacementPlan;
diff --git a/src/components/selectRangeUsePlanPage/ExtensionColumn.js b/src/components/selectRangeUsePlanPage/ExtensionColumn.js
index 87ca0e0e..e78a4859 100644
--- a/src/components/selectRangeUsePlanPage/ExtensionColumn.js
+++ b/src/components/selectRangeUsePlanPage/ExtensionColumn.js
@@ -147,6 +147,10 @@ export default function ExtensionColumn({ user, currentPage, agreement }) {
return
Staff Rejected
;
case PLAN_EXTENSION_STATUS.DISTRICT_MANAGER_REJECTED:
return
District Manager Rejected
;
+ case PLAN_EXTENSION_STATUS.REPLACEMENT_PLAN_CREATED:
+ return
Replacement Plan Created
;
+ case PLAN_EXTENSION_STATUS.REPLACEMENT_PLAN_ACTIVE:
+ return
Active Replacement Plan
;
case PLAN_EXTENSION_STATUS.AWAITING_EXTENSION:
if (
agreement.plan?.extensionReceivedVotes ===
@@ -205,6 +209,7 @@ export default function ExtensionColumn({ user, currentPage, agreement }) {
const renderExtensionForStaff = (user, agreement) => {
if (isUserStaff(user)) {
+ console.log(agreement.plan?.extensionStatus);
switch (agreement.plan?.extensionStatus) {
case PLAN_EXTENSION_STATUS.AWAITING_VOTES:
if (
@@ -253,6 +258,10 @@ export default function ExtensionColumn({ user, currentPage, agreement }) {
return
District Manager Rejected
;
case PLAN_EXTENSION_STATUS.AWAITING_EXTENSION:
return
Awaiting Extension
;
+ case PLAN_EXTENSION_STATUS.REPLACEMENT_PLAN_CREATED:
+ return
Replacement Plan Created
;
+ case PLAN_EXTENSION_STATUS.REPLACEMENT_PLAN_ACTIVE:
+ return
Active Replacement Plan
;
case PLAN_EXTENSION_STATUS.EXTENDED:
return (
@@ -302,11 +311,14 @@ export default function ExtensionColumn({ user, currentPage, agreement }) {
} else {
if (
agreement.plan?.planExtensionRequests.filter((request) => {
- return request.userId === user.id && request.requestedExtension;
- }).length === 0
+ return (
+ request.userId === user.id &&
+ request.requestedExtension === true
+ );
+ }).length !== 0
)
- return <>Rejected>;
- return <>Requested>;
+ return <>Requested>;
+ return <>->;
}
case PLAN_EXTENSION_STATUS.AGREEMENT_HOLDER_REJECTED:
return
Agreement Holder Rejected
;
@@ -316,6 +328,10 @@ export default function ExtensionColumn({ user, currentPage, agreement }) {
return
District Manager Rejected
;
case PLAN_EXTENSION_STATUS.AWAITING_EXTENSION:
return
Awaiting Extension
;
+ case PLAN_EXTENSION_STATUS.REPLACEMENT_PLAN_CREATED:
+ return
Replacement Plan Created
;
+ case PLAN_EXTENSION_STATUS.REPLACEMENT_PLAN_ACTIVE:
+ return
Active Replacement Plan
;
case PLAN_EXTENSION_STATUS.EXTENDED:
return (
diff --git a/src/components/selectRangeUsePlanPage/NewPlanButton.js b/src/components/selectRangeUsePlanPage/NewPlanButton.js
index 32ad757b..c0bd462c 100644
--- a/src/components/selectRangeUsePlanPage/NewPlanButton.js
+++ b/src/components/selectRangeUsePlanPage/NewPlanButton.js
@@ -25,7 +25,6 @@ const NewPlanButton = ({ agreement }) => {
return (