Skip to content

Commit

Permalink
Change l'affichage du niveau de budget pour être conforme au nouveau …
Browse files Browse the repository at this point in the history
…contenu de la table "action_impact_fourchette_budgetaire"
  • Loading branch information
marc-rutkowski committed Apr 29, 2024
1 parent 379978a commit 358ee4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const CarteActionImpact = ({
<Badge title={thematiques[0].nom} size="sm" state="standard" />
)}
{/* Budget */}
<NiveauBudget budget={budget ?? {niveau: 4, nom: 'Non estimé'}} />
<NiveauBudget budget={budget ?? {niveau: 1, nom: 'Non estimé'}} />
</div>

{/* Boutons d'action, visibles au hover de la carte */}
Expand Down
14 changes: 7 additions & 7 deletions packages/panier/components/ActionImpact/NiveauBudget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const NiveauBudget = ({budget}: NiveauBudgetProps) => {
<Tooltip
label={
<div className="w-52 !font-normal">
{budget.niveau === 4
{budget.niveau === 1
? 'Ordre de grandeur budgétaire non estimé.'
: tooltipText}
</div>
Expand All @@ -35,22 +35,22 @@ const NiveauBudget = ({budget}: NiveauBudgetProps) => {
<Icon
icon="money-euro-circle-fill"
className={classNames({
'text-secondary-1': budget.niveau >= 1 && budget.niveau < 4,
'text-grey-4': budget.niveau === 4,
'text-secondary-1': budget.niveau > 1,
'text-grey-4': budget.niveau === 1,
})}
/>
<Icon
icon="money-euro-circle-fill"
className={classNames({
'text-secondary-1': budget.niveau >= 2 && budget.niveau < 4,
'text-grey-4': budget.niveau === 4 || budget.niveau < 2,
'text-secondary-1': budget.niveau > 2,
'text-grey-4': budget.niveau <= 2,
})}
/>
<Icon
icon="money-euro-circle-fill"
className={classNames({
'text-secondary-1': budget.niveau === 3,
'text-grey-4': budget.niveau !== 3,
'text-secondary-1': budget.niveau > 3,
'text-grey-4': budget.niveau <= 3,
})}
/>
</div>
Expand Down

0 comments on commit 358ee4b

Please sign in to comment.