diff --git a/mon-entreprise/source/components/simulationExplanation/IndépendantExplanation.tsx b/mon-entreprise/source/components/simulationExplanation/IndépendantExplanation.tsx index 131af5d7b..c015acd28 100644 --- a/mon-entreprise/source/components/simulationExplanation/IndépendantExplanation.tsx +++ b/mon-entreprise/source/components/simulationExplanation/IndépendantExplanation.tsx @@ -26,12 +26,14 @@ export default function IndépendantExplanation() { return ( <> - - - - - - +
+ + + + + + +
diff --git a/publicodes/ui-react/source/mecanisms/Replacement.tsx b/publicodes/ui-react/source/mecanisms/Replacement.tsx index 339640e33..c1b88e7aa 100644 --- a/publicodes/ui-react/source/mecanisms/Replacement.tsx +++ b/publicodes/ui-react/source/mecanisms/Replacement.tsx @@ -3,8 +3,8 @@ import { useState } from 'react' import emoji from 'react-easy-emoji' import Variations from './Variations' import Overlay from '../Overlay' +import Explanation from '../Explanation' import { RuleLinkWithContext } from '../RuleLink' -import { NodeValuePointer, UnfoldIsEnabledContext } from './common' import { EvaluatedNode } from 'publicodes/source/AST/types' export default function Replacement(node: VariationNode & EvaluatedNode) { @@ -18,16 +18,7 @@ export default function Replacement(node: VariationNode & EvaluatedNode) { const [displayReplacements, changeDisplayReplacement] = useState(false) return ( - -   - {applicableReplacement && ( - - - - )} +