Skip to content

Commit

Permalink
feat: add new orga cards (#605) (#606)
Browse files Browse the repository at this point in the history
add new orga cards
  • Loading branch information
Volubyl committed May 24, 2023
1 parent 56f832c commit 3ba6b10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions client/src/lib/repositories/catalogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,15 @@ export const getCatalogs: GetCatalogs = async ({ fetch, apiToken }) => {
const data = await response.json();
return data
.map(toCatalog)
.sort((a: Catalog, b: Catalog) => {

if (a.organization.name < b.organization.name) {
return -1;
}
if (a.organization.name > b.organization.name) {
return 1;
}
return 0;
})
.filter((item) => item.organization.siret !== "00000000000000");
};
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<div class="fr-grid-row fr-grid-row--gutters">
<div class="fr-col-12 fr-col-sm-6 fr-col-md-5 fr-col-lg-3">
<OrganizationCard
name="Agence de la transition écologique"
name="Agence de l'environnement et de la maîtrise de l'énergie"
src={"https://raw.githubusercontent.com/etalab/catalogage-donnees-config/main/organizations/ademe/logo.svg"}
status="catalog"
/>
Expand Down

0 comments on commit 3ba6b10

Please sign in to comment.