Skip to content

Commit

Permalink
Disable/commented out Map View in Location List and Remove Related Tr…
Browse files Browse the repository at this point in the history
…anslations
  • Loading branch information
abhimanyurajeesh committed Feb 18, 2025
1 parent 68c8489 commit 2b44688
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,6 @@
"manufacturer": "Manufacturer",
"map": "Map",
"map_acronym": "M.A.P.",
"map_view_coming_soon": "Map view coming soon",
"mark_active": "Mark Active",
"mark_all_as_read": "Mark all as Read",
"mark_as_complete": "Mark as Complete",
Expand Down
13 changes: 9 additions & 4 deletions src/pages/Facility/settings/locations/LocationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,14 @@ export default function LocationList({ facilityId }: Props) {
<span>{t("list")}</span>
</div>
</TabsTrigger>
{/* Map view will be added later
<TabsTrigger value="map" id="location-map-view">
<div className="flex items-center gap-1">
<CareIcon icon="l-map" className="text-lg" />
<span>{t("map")}</span>
</div>
</TabsTrigger>
*/}
</TabsList>
</Tabs>
</div>
Expand Down Expand Up @@ -412,13 +414,16 @@ export default function LocationList({ facilityId }: Props) {
</div>
)}

{activeTab === "list" ? (
renderListView()
) : (
{
activeTab === "list"
? renderListView()
: /* Map view will be added later
<div className="h-[600px] bg-gray-100 rounded-lg flex items-center justify-center">
<p className="text-gray-500">{t("map_view_coming_soon")}</p>
</div>
)}
*/
renderListView() // Default to list view for now
}

<LocationSheet
open={isSheetOpen}
Expand Down

0 comments on commit 2b44688

Please sign in to comment.