{!consultationData.discharge_date && (
-
- navigate(
- `/facility/${patientData.facility}/patient/${patientData.id}/shift/new`
- )
- }
- className="btn btn-primary m-1 w-full hover:text-white"
- >
-
- Shift Patient
-
+ {hasActiveShiftingRequest() ? (
+
+ navigate(
+ `/shifting/${
+ activeShiftingData[activeShiftingData.length - 1].id
+ }`
+ )
+ }
+ className="btn btn-primary m-1 w-full hover:text-white"
+ >
+
+ Track Shifting
+
+ ) : (
+
+ navigate(
+ `/facility/${patientData.facility}/patient/${patientData.id}/shift/new`
+ )
+ }
+ className="btn btn-primary m-1 w-full hover:text-white"
+ >
+
+ Shift Patient
+
+ )}