Skip to content

Commit

Permalink
fix(candidate): update badge wording from "Non recevable" to "Non val…
Browse files Browse the repository at this point in the history
…able" across multiple components
  • Loading branch information
ThomasDos committed Dec 20, 2024
1 parent 8790c4a commit c8644f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const getFeasibilityDematTimelineElementInfo = ({
</InformationWithIcon>
),
status: "active",
badgeStatus: <Badge severity="warning">Non recevable</Badge>,
badgeStatus: <Badge severity="warning">Non valable</Badge>,
};

case decision === "ADMISSIBLE":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const DF_HAS_BEEN_SENT_TEXT =
const INFORMATION_ICON = "fr-icon-information-fill";
const TIME_ICON = "fr-icon-time-fill";

const BadgeNonRecevable = <Badge severity="warning">Non recevable</Badge>;
const BadgeNonRecevable = <Badge severity="warning">Non valable</Badge>;

export const useGetFeasibilityPdfTimelineElementInfo =
(): GetFeasibilityTimelineElementInfoResult => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ interface GetSelfServiceFeasibilityFileTimelineInfo {
button: ReactNode;
}

const NonRecevableBadge = (
const NonValableBadge = (
<Badge
severity="warning"
data-test="feasibility-timeline-element-non-recevable-badge"
data-test="feasibility-timeline-element-non-valable-badge"
>
Non recevable
Non valable
</Badge>
);

Expand Down Expand Up @@ -88,7 +88,7 @@ export function useGetSelfServiceFeasibilityFileTimelineInfo(): GetSelfServiceFe
case hasConfirmedCaducite:
return {
status: "active",
badge: NonRecevableBadge,
badge: NonValableBadge,
notice: (
<TimelineNotice
icon="fr-icon-info-fill"
Expand All @@ -101,7 +101,7 @@ export function useGetSelfServiceFeasibilityFileTimelineInfo(): GetSelfServiceFe
case !!pendingContestationCaducite:
return {
status: "active",
badge: NonRecevableBadge,
badge: NonValableBadge,
notice: (
<TimelineNotice
icon="fr-icon-time-fill"
Expand All @@ -117,7 +117,7 @@ export function useGetSelfServiceFeasibilityFileTimelineInfo(): GetSelfServiceFe
case isCaduque && candidacyActualisationFeatureIsActive:
return {
status: "active",
badge: NonRecevableBadge,
badge: NonValableBadge,
notice: (
<TimelineNotice
icon="fr-icon-info-fill"
Expand Down

0 comments on commit c8644f3

Please sign in to comment.