Skip to content

Commit

Permalink
supporting agencies list order/styling
Browse files Browse the repository at this point in the history
  • Loading branch information
graphographer committed Apr 4, 2024
1 parent ecc388e commit ccc350e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
21 changes: 14 additions & 7 deletions src/components/tabs/BeMapAgencyPresence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export class BeMapAgencyPresence extends StateProvider {
margin-top: 0;
}
ul {
margin-top: 0;
}
thead th {
text-align: center;
}
Expand All @@ -35,7 +39,7 @@ export class BeMapAgencyPresence extends StateProvider {
['DOS', 'U.S. Department of State'],
['MCC', 'Millenium Challenge Corporation'],
['PC', 'The Peace Corps'],
['USAID', 'USAID'],
['USAID', 'U.S. Agency for International Development'],
['USDA', 'U.S. Department of Agriculture']
];

Expand All @@ -45,12 +49,11 @@ export class BeMapAgencyPresence extends StateProvider {
'Secondary',
'Workforce Development',
'Education Systems Strengthening',
'Education Level Not Specified'
'Education Levels Not Specified'
];

render() {
if (this.state.agencyEducationSupportForSelectedCountry) {
console.log('WHY HERE?', this.state.selectedCountry);
return html`
<table>
<caption>
Expand Down Expand Up @@ -91,10 +94,14 @@ export class BeMapAgencyPresence extends StateProvider {
</tbody>
</table>
<p>
<b>Supporting Agencies:</b>
${this.state.agenciesInSelectedCountry!.join(', ')}
</p>
<b>Supporting Agencies:</b>
<ul>
${BeMapAgencyPresence.agencies
.filter(([, long]) =>
this.state.agenciesInSelectedCountry.includes(long)
)
.map(([short, long]) => html`<li>${short} (${long})</li>`)}
</ul>
`;
} else {
return html`<h4>
Expand Down
4 changes: 2 additions & 2 deletions src/types/EEducationLevel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ export type TEducationLevel =
| 'Secondary'
| 'Workforce Development'
| 'Education Systems Strengthening'
| 'Education Level Not Specified';
| 'Education Levels Not Specified';

export const EDUCATION_LEVELS: TEducationLevel[] = [
'Pre-Primary',
'Primary',
'Secondary',
'Workforce Development',
'Education Systems Strengthening',
'Education Level Not Specified'
'Education Levels Not Specified'
];
2 changes: 1 addition & 1 deletion src/types/TAgencyPresence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export type TAgencyPresence = {
Secondary: number;
'Workforce Development': number;
'Education Systems Strengthening': number;
'Education Level Not Specified': boolean;
'Education Levels Not Specified': boolean;
};

0 comments on commit ccc350e

Please sign in to comment.