Skip to content

Commit

Permalink
chore(admin): wording changes on aap settings v3 summary page (empty …
Browse files Browse the repository at this point in the history
…states)
  • Loading branch information
agarbe committed Oct 7, 2024
1 parent cd2b275 commit 03c58fc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ export const AgenciesSettingsSectionOnSite = ({
buttonOnClickHref={`/agencies-settings-v3/${maisonMereAAPId}/organisms/add-agency`}
titleIconClass="fr-icon-home-4-fill"
isEditable
customButtonTitle={
isOnSiteAgencyComplete ? "Ajouter un lieu d'accueil" : "Ajouter"
}
customButtonTitle={"Ajouter un lieu d'accueil"}
status={isOnSiteAgencyComplete ? "COMPLETED" : "TO_COMPLETE"}
CustomBadge={<div />}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ export const AgencySettingsSummarySectionRemote = ({
isVisibleInCandidateSearchResults: boolean;
remoteZones: RemoteZone[];
informationsCommerciales?: { nom?: string | null } | null;
isRemote: boolean;
};
maisonMereAAPId: string;
}) => {
if (!organism) return null;

const informationComplete = organism.isRemote;

return (
<EnhancedSectionCard
data-test="remote-agency"
Expand All @@ -36,6 +39,12 @@ export const AgencySettingsSummarySectionRemote = ({
}
titleIconClass="fr-icon-headphone-fill"
>
{!informationComplete && (
<p className="md:w-4/5">
Ce choix est optionnel. Vous pouvez très bien paramétrer votre compte
sans sélectionner cette modalité d’accompagnement.
</p>
)}
<div className="pl-10 flex flex-col gap-4">
<ul className="list-none pl-0 flex flex-col gap-2">
<div className="font-bold mb-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const SettingsSummaryForGestionnaire = ({
titleIconClass="fr-icon-team-fill"
CustomBadge={<div />}
status={hasOtherAccounts ? "COMPLETED" : "TO_COMPLETE"}
customButtonTitle={hasOtherAccounts ? "Créer un compte" : "Ajouter"}
customButtonTitle={"Créer un compte"}
>
{hasOtherAccounts ? (
<HeadAgencySettingsSectionAccountList
Expand All @@ -90,9 +90,9 @@ export const SettingsSummaryForGestionnaire = ({
/>
) : (
<p className="ml-10 md:w-4/5">
Vous avez besoin de collaborer à plusieurs sur la plateforme ?
Ajoutez des comptes collaborateurs pour que vos collaborateurs
puissent avoir accès à leurs candidatures.
Vous avez besoin de collaborer à plusieurs sur la plateforme ? Créez
des comptes collaborateurs pour que vos collaborateurs puissent
avoir accès à leurs candidatures.
</p>
)}
{!isGeneralInformationCompleted && (
Expand Down

0 comments on commit 03c58fc

Please sign in to comment.