Skip to content

Commit

Permalink
refactor(client): Rename the administrative levels
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprdhomme committed Nov 22, 2024
1 parent 6fe21d1 commit 65263f9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/src/components/panels/location/administrative-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const AdministrativeTab = ({ locationCode, onChangeLocationCode }: Administrativ
<>
<p>
Select a location by administrative boundaries to view data specific to states, counties, or
regions. This helps focus on localized insights for effective resource management and
payams. This helps focus on localized insights for effective resource management and
planning.
</p>
<div className="mt-8 flex flex-col gap-4">
Expand Down Expand Up @@ -130,7 +130,7 @@ const AdministrativeTab = ({ locationCode, onChangeLocationCode }: Administrativ
{!!selectedLocationLevel2 && (
<span className="font-semibold">{selectedLocationLevel2.name}</span>
)}
{!selectedLocationLevel2 && "Select countie"}
{!selectedLocationLevel2 && "Select county"}
</ComboboxTrigger>
{!!selectedLocationLevel2 && (
<Button
Expand All @@ -140,13 +140,13 @@ const AdministrativeTab = ({ locationCode, onChangeLocationCode }: Administrativ
className="absolute right-3 top-1/2 size-6 -translate-y-1/2 rounded-full bg-casper-blue-400 text-rhino-blue-950 focus-visible:ring-casper-blue-950"
onClick={() => onChangeLocationLevel2(undefined)}
>
<span className="sr-only">Clear countie</span>
<span className="sr-only">Clear county</span>
<XMarkIcon aria-hidden />
</Button>
)}
</div>
<ComboboxContent>
<ComboboxInput placeholder="Search countie" />
<ComboboxInput placeholder="Search county" />
<ComboboxList>
<ComboboxEmpty>No results found.</ComboboxEmpty>
{isLoadingLevel2 && <ComboboxLoading>Loading...</ComboboxLoading>}
Expand All @@ -165,7 +165,7 @@ const AdministrativeTab = ({ locationCode, onChangeLocationCode }: Administrativ
{!!selectedLocationLevel3 && (
<span className="font-semibold">{selectedLocationLevel3.name}</span>
)}
{!selectedLocationLevel3 && "Select region"}
{!selectedLocationLevel3 && "Select payam"}
</ComboboxTrigger>
{!!selectedLocationLevel3 && (
<Button
Expand All @@ -175,13 +175,13 @@ const AdministrativeTab = ({ locationCode, onChangeLocationCode }: Administrativ
className="absolute right-3 top-1/2 size-6 -translate-y-1/2 rounded-full bg-casper-blue-400 text-rhino-blue-950 focus-visible:ring-casper-blue-950"
onClick={() => onChangeLocationLevel3(undefined)}
>
<span className="sr-only">Clear region</span>
<span className="sr-only">Clear payam</span>
<XMarkIcon aria-hidden />
</Button>
)}
</div>
<ComboboxContent>
<ComboboxInput placeholder="Search region" />
<ComboboxInput placeholder="Search payam" />
<ComboboxList>
<ComboboxEmpty>No results found.</ComboboxEmpty>
{isLoadingLevel3 && <ComboboxLoading>Loading...</ComboboxLoading>}
Expand Down

0 comments on commit 65263f9

Please sign in to comment.