From c16170e6278010c4b071a53dcc2a9c8f7c9dff1c Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Mon, 24 Jul 2023 12:34:52 +0200 Subject: [PATCH] =?UTF-8?q?Remplace=20les=20=C2=ABen=20savoir=20plus=C2=BB?= =?UTF-8?q?=20dans=20les=20notifications=20par=20un=20bouton=20=C2=ABinfo?= =?UTF-8?q?=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #2371 --- site/source/components/Notifications.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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 ?? ''} +