diff --git a/site/source/components/Notifications.tsx b/site/source/components/Notifications.tsx index 17819a29f..c8aa780ee 100644 --- a/site/source/components/Notifications.tsx +++ b/site/source/components/Notifications.tsx @@ -10,6 +10,7 @@ import { Trans, useTranslation } from 'react-i18next' import { useDispatch, useSelector } from 'react-redux' import styled from 'styled-components' import RuleLink from './RuleLink' +import { Appear } from './ui/animate' import { Markdown } from './utils/markdown' // To add a new notification to a simulator, you should create a publicodes rule @@ -67,27 +68,29 @@ export default function Notifications() { margin-top: 1rem; `} > - {messages.map(({ sévérité, dottedName, résumé, description }) => ( - - {résumé ?? description ?? ''}{' '} - {résumé && ( - - En savoir plus - - )} - dispatch(hideNotification(dottedName))} + + {messages.map(({ sévérité, dottedName, résumé, description }) => ( + - × - - - ))} + {résumé ?? description ?? ''}{' '} + {résumé && ( + + En savoir plus + + )} + dispatch(hideNotification(dottedName))} + > + × + + + ))} + ) }