Skip to content

Commit

Permalink
fixed translation issue in switchbed (#8648)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 authored Sep 27, 2024
1 parent 53c5a7a commit 38dc536
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useTranslation } from "react-i18next";
import Chip from "../../../CAREUI/display/Chip";
import Timeline, {
TimelineEvent,
Expand Down Expand Up @@ -204,6 +205,7 @@ const BedTitleSuffix = ({
isLastNode?: boolean;
prevBed?: CurrentBed;
}) => {
const { t } = useTranslation();
return (
<div className="flex flex-col">
<div className="flex gap-x-2">
Expand All @@ -215,7 +217,7 @@ const BedTitleSuffix = ({
{bed.bed_object.id === prevBed?.bed_object.id
? "Asset changed in" + " "
: "Transferred to" + " "}
<span className="font-semibold">{`${bed.bed_object.name} (${bed.bed_object.bed_type}) in ${bed.bed_object.location_object?.name}`}</span>
<span className="font-semibold">{`${bed.bed_object.name} (${t(bed.bed_object.bed_type!)}) in ${bed.bed_object.location_object?.name}`}</span>
{bed.end_date === null && (
<Chip
text="In Use"
Expand Down

0 comments on commit 38dc536

Please sign in to comment.