Skip to content

Commit

Permalink
added text in en locale files
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Sep 26, 2024
1 parent 3ceb9be commit 28b27c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Components/Facility/AddBedForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ export const AddBedForm = ({ facilityId, locationId, bedId }: Props) => {
const { res } = await request(routes.createFacilityBed, {
body: { ...data, facility: facilityId, location: locationId },
});
res?.ok && numberOfBeds>1
? onSuccess("Beds created successfully")
: onSuccess("Bed created successfully");
res?.ok && (numberOfBeds>1

Check failure on line 130 in src/Components/Facility/AddBedForm.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·(numberOfBeds>1·⏎` with `⏎········(numberOfBeds·>·1⏎··`
? onSuccess(t("multiple_bed_created_notification"))
: onSuccess(t("single_bed_created_notification")))

Check failure on line 132 in src/Components/Facility/AddBedForm.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `:·onSuccess(t("single_bed_created_notification")))` with `··:·onSuccess(t("single_bed_created_notification")));`
}
};

Expand Down
4 changes: 3 additions & 1 deletion src/Locale/en/Bed.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"bed_type": "Bed Type",
"make_multiple_beds_label": "Do you want to make multiple beds?",
"number_of_beds": "Number of beds",
"number_of_beds_out_of_range_error": "Number of beds cannot be greater than 100"
"number_of_beds_out_of_range_error": "Number of beds cannot be greater than 100",
"single_bed_created_notification": "Bed created successfully",
"multiple_bed_created_notification": "Beds created successfully"
}

0 comments on commit 28b27c0

Please sign in to comment.