Skip to content

Commit

Permalink
feat(admin): added remote organism name to agency settings v3 remote …
Browse files Browse the repository at this point in the history
…summary card
  • Loading branch information
agarbe committed Oct 4, 2024
1 parent fec70be commit f0120ff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const AgencySettingsSummarySectionRemote = ({
id: string;
isVisibleInCandidateSearchResults: boolean;
remoteZones: RemoteZone[];
informationsCommerciales?: { nom?: string | null } | null;
};
maisonMereAAPId: string;
}) => {
Expand All @@ -37,7 +38,10 @@ export const AgencySettingsSummarySectionRemote = ({
>
<div className="pl-10 flex flex-col gap-4">
<ul className="list-none pl-0 flex flex-col gap-2">
{organism.remoteZones?.map((r) => (
<div className="font-bold mb-2">
{organism?.informationsCommerciales?.nom}
</div>
{organism.remoteZones.map((r) => (
<li key={r}>{getRemoteZoneLabel(r)}</li>
))}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const AgencySettingsInfoQuery = graphql(`
isHeadAgency
isVisibleInCandidateSearchResults
remoteZones
informationsCommerciales {
nom
}
}
id
firstname
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const HeadAgencySettingsInfoQuery = graphql(`
isRemote
isVisibleInCandidateSearchResults
remoteZones
informationsCommerciales {
nom
}
maisonMereAAP {
id
statutValidationInformationsJuridiquesMaisonMereAAP
Expand Down

0 comments on commit f0120ff

Please sign in to comment.