Skip to content

Commit

Permalink
Revert "fixes #5384"
Browse files Browse the repository at this point in the history
This reverts commit 5b2f4f5.
  • Loading branch information
rithviknishad committed Apr 24, 2023
1 parent 5b2f4f5 commit 11d27ab
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions src/Components/Shifting/ShiftDetailsUpdate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import useAppHistory from "../../Common/hooks/useAppHistory";
import useConfig from "../../Common/hooks/useConfig";
import { useDispatch } from "react-redux";
import { useTranslation } from "react-i18next";
import { FieldChangeEvent } from "../Form/FormFields/Utils.js";

const Loading = loadable(() => import("../Common/Loading"));
const PageTitle = loadable(() => import("../Common/PageTitle"));
Expand All @@ -50,7 +49,7 @@ interface patientShiftProps {

export const ShiftDetailsUpdate = (props: patientShiftProps) => {
const { goBack } = useAppHistory();
const { wartime_shifting } = useConfig();
const { kasp_full_string, wartime_shifting } = useConfig();
const dispatchAction: any = useDispatch();
const [qParams, _] = useQueryParams();
const [isLoading, setIsLoading] = useState(true);
Expand Down Expand Up @@ -426,6 +425,33 @@ export const ShiftDetailsUpdate = (props: patientShiftProps) => {
<LegacyErrorHelperText error={state.errors.emergency} />
</div>

<div>
<FieldLabel>
{t("is")} {kasp_full_string}?
</FieldLabel>
<RadioGroup
aria-label="is_kasp"
name="is_kasp"
value={[true, "true"].includes(state.form.is_kasp)}
onChange={handleChange}
style={{ padding: "0px 5px" }}
>
<Box>
<FormControlLabel
value={true}
control={<Radio />}
label={t("yes")}
/>
<FormControlLabel
value={false}
control={<Radio />}
label={t("no")}
/>
</Box>
</RadioGroup>
<LegacyErrorHelperText error={state.errors.is_kasp} />
</div>

<div>
<FieldLabel>{t("is_this_an_upshift")}</FieldLabel>
<RadioGroup
Expand Down

0 comments on commit 11d27ab

Please sign in to comment.