diff --git a/site/source/components/Notifications.tsx b/site/source/components/Notifications.tsx index 3584435ad..f1f7f617d 100644 --- a/site/source/components/Notifications.tsx +++ b/site/source/components/Notifications.tsx @@ -1,6 +1,6 @@ import { DottedName } from 'modele-social' import Engine, { RuleNode } from 'publicodes' -import { Trans, useTranslation } from 'react-i18next' +import { useTranslation } from 'react-i18next' import { useDispatch, useSelector } from 'react-redux' import styled from 'styled-components' @@ -11,9 +11,8 @@ import { Body } from '@/design-system/typography/paragraphs' import { hideNotification } from '@/store/actions/actions' import { RootState } from '@/store/reducers/rootReducer' -import RuleLink from './RuleLink' +import { ExplicableRule } from './conversation/Explicable' import { Appear } from './ui/animate' -import { Markdown } from './utils/markdown' // To add a new notification to a simulator, you should create a publicodes rule // with the "type: notification" attribute. The display can be customized with @@ -78,13 +77,9 @@ export default function Notifications() { type={sévérité === 'avertissement' ? 'info' : 'primary'} key={dottedName} > - {résumé ?? description ?? ''}{' '} - {résumé && ( - - En savoir plus - - )} + {résumé ?? description ?? ''} +