Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/ohcnetwork/care_fe into …
Browse files Browse the repository at this point in the history
…location-view-for-patients
  • Loading branch information
amjithtitus09 committed Mar 6, 2025
2 parents 118eb1b + 9cfed2f commit 056cabf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1025,12 +1025,16 @@
"end_time_future_error": "End time cannot be in the future",
"end_time_required": "End time is required",
"ended": "Ended",
"enter_address": "Enter complete address",
"enter_contact_value": "Enter contact value",
"enter_department_team_description": "Enter department/team description (optional)",
"enter_department_team_name": "Enter department/team name",
"enter_dosage_instructions": "Enter Dosage Instructions",
"enter_facility_name": "Enter Facility Name",
"enter_file_name": "Enter File Name",
"enter_identifier": "Enter device identifier",
"enter_latitude": "Enter latitude",
"enter_longitude": "Enter longitude",
"enter_lot_number": "Enter lot number",
"enter_manufacturer": "Enter manufacturer name",
"enter_message": "Start typing...",
Expand All @@ -1041,6 +1045,7 @@
"enter_part_number": "Enter part number",
"enter_phone_number": "Enter phone number",
"enter_phone_number_to_login_register": "Enter phone number to login/register",
"enter_pincode": "Enter pincode",
"enter_registered_name": "Enter the registered name of the device",
"enter_serial_number": "Enter serial number",
"enter_tag_name": "Enter tag name",
Expand Down
16 changes: 8 additions & 8 deletions src/components/Facility/FacilityForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export default function FacilityForm({
<Select onValueChange={field.onChange} value={field.value}>
<FormControl>
<SelectTrigger data-cy="facility-type">
<SelectValue placeholder="Select facility type" />
<SelectValue placeholder={t("select_facility_type")} />
</SelectTrigger>
</FormControl>
<SelectContent>
Expand Down Expand Up @@ -261,7 +261,7 @@ export default function FacilityForm({
<FormControl>
<Input
data-cy="facility-name"
placeholder="Enter facility name"
placeholder={t("enter_facility_name")}
{...field}
/>
</FormControl>
Expand All @@ -280,7 +280,7 @@ export default function FacilityForm({
<Textarea
{...field}
data-cy="facility-description"
placeholder="Describe your facility (Markdown supported)"
placeholder={t("markdown_supported")}
/>
</FormControl>
<FormMessage />
Expand Down Expand Up @@ -341,11 +341,11 @@ export default function FacilityForm({
name="pincode"
render={({ field }) => (
<FormItem>
<FormLabel required>Pincode</FormLabel>
<FormLabel required>{t("pincode")}</FormLabel>
<FormControl>
<Input
data-cy="facility-pincode"
placeholder="Enter pincode"
placeholder={t("enter_pincode")}
maxLength={6}
{...field}
/>
Expand Down Expand Up @@ -388,7 +388,7 @@ export default function FacilityForm({
<Textarea
{...field}
data-cy="facility-address"
placeholder="Enter complete address"
placeholder={t("enter_address")}
/>
</FormControl>
<FormMessage />
Expand Down Expand Up @@ -443,7 +443,7 @@ export default function FacilityForm({
);
}}
data-cy="facility-latitude"
placeholder="Enter latitude"
placeholder={t("enter_latitude")}
disabled={isGettingLocation}
className={isGettingLocation ? "animate-pulse" : ""}
/>
Expand Down Expand Up @@ -471,7 +471,7 @@ export default function FacilityForm({
);
}}
data-cy="facility-longitude"
placeholder="Enter longitude"
placeholder={t("enter_longitude")}
disabled={isGettingLocation}
className={isGettingLocation ? "animate-pulse" : ""}
/>
Expand Down

0 comments on commit 056cabf

Please sign in to comment.