Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNumericite committed Feb 27, 2024
1 parent 12443de commit bd4af5f
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions components/top250/table/OldProceduresTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ export const OldProceduresTable = ({ procedures, sort, setSort }: Props) => {
attr === 'satisfactionIndex_display' &&
(procedure.satisfactionIndex_value || -1) >= 0;

const displayAccessibilityScore =
attr === 'accessibilityScore_display' &&
!!procedure.rgaaCompliancyLevel_value;

return (
<td key={i} style={{ position: 'relative' }}>
<IndicatorLabel
Expand Down Expand Up @@ -184,14 +188,13 @@ export const OldProceduresTable = ({ procedures, sort, setSort }: Props) => {
Voir
</Link>
)}
{attr === 'accessibilityScore_display' &&
!!procedure.rgaaCompliancyLevel_value && (
<span
className={cx(fr.cx('fr-text--xs'), classes.smallLinks)}
>
{procedure.rgaaCompliancyLevel_display}
</span>
)}
{displayAccessibilityScore && (
<span
className={cx(fr.cx('fr-text--xs'), classes.smallLinks)}
>
{procedure.rgaaCompliancyLevel_display}
</span>
)}
</td>
);
})}
Expand Down

0 comments on commit bd4af5f

Please sign in to comment.