From 60a0ca68a553d0a80c5e6719e439891136897b86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Tue, 5 Apr 2022 09:52:47 +0200 Subject: [PATCH] Ajoute des key au map --- site/source/design-system/typography/link.tsx | 2 -- .../gerer/declaration-revenu-independants/declaration.tsx | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/site/source/design-system/typography/link.tsx b/site/source/design-system/typography/link.tsx index 662c4a67f..273a16c9b 100644 --- a/site/source/design-system/typography/link.tsx +++ b/site/source/design-system/typography/link.tsx @@ -155,8 +155,6 @@ export function useButtonOrLink( ) ) - console.log(initialProps) - const buttonOrLinkProps = { ...initialProps, ...buttonProps, diff --git a/site/source/pages/gerer/declaration-revenu-independants/declaration.tsx b/site/source/pages/gerer/declaration-revenu-independants/declaration.tsx index 163d3e055..4159b8846 100644 --- a/site/source/pages/gerer/declaration-revenu-independants/declaration.tsx +++ b/site/source/pages/gerer/declaration-revenu-independants/declaration.tsx @@ -18,7 +18,7 @@ import { getMeta } from '@/utils' import { Grid } from '@mui/material' import { Item } from '@react-stately/collections' import { Rule, RuleNode } from 'publicodes' -import { useContext, useEffect, useMemo, useState } from 'react' +import { Fragment, useContext, useEffect, useMemo, useState } from 'react' import { Trans, useTranslation } from 'react-i18next' import styled, { css } from 'styled-components' import { SimpleField } from '../_components/Fields' @@ -322,7 +322,7 @@ function ResultSection() { > {fields.map(([dottedName, rule]) => getMeta(rule.rawNode, {})?.section === 'oui' ? ( - + {rule.dottedName.split(' . ').length === 3 ? (

{rule.title}

) : ( @@ -336,7 +336,7 @@ function ResultSection() { )}
) : ( - <> + {rule.title} {rule.rawNode.note} @@ -350,7 +350,7 @@ function ResultSection() { - + ) )}