Skip to content

Commit

Permalink
Peacetime shifting (#5369)
Browse files Browse the repository at this point in the history
Co-authored-by: Gigin George <[email protected]>
  • Loading branch information
khavinshankar and gigincg authored Apr 21, 2023
1 parent ca0501b commit da56ceb
Show file tree
Hide file tree
Showing 8 changed files with 501 additions and 411 deletions.
7 changes: 4 additions & 3 deletions src/Common/constants.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PatientCategory } from "../Components/Facility/models";
import { parsePhoneNumberFromString } from "libphonenumber-js";
import moment from "moment";
import { IConfig } from "./hooks/useConfig";
import { PatientCategory } from "../Components/Facility/models";
import { SortOption } from "../Components/Common/SortDropdown";
import moment from "moment";
import { parsePhoneNumberFromString } from "libphonenumber-js";

export const RESULTS_PER_PAGE_LIMIT = 14;
export const PAGINATION_LIMIT = 36;
Expand Down Expand Up @@ -146,6 +146,7 @@ export const SHIFTING_CHOICES: Array<OptionsType> = [
{ id: 60, text: "PATIENT TO BE PICKED UP" },
{ id: 70, text: "TRANSFER IN PROGRESS" },
{ id: 80, text: "COMPLETED" },
{ id: 90, text: "PATIENT EXPIRED" },
];

export const SHIFTING_VEHICLE_CHOICES: Array<OptionsType> = [
Expand Down
4 changes: 4 additions & 0 deletions src/Common/hooks/useConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export interface IConfig {
* Env to enable HCX features
*/
enable_hcx: boolean;
/**
* Env to toggle peacetime and wartime shifting
*/
wartime_shifting: boolean;
}

const useConfig = () => {
Expand Down
Loading

0 comments on commit da56ceb

Please sign in to comment.