From e81c0a41b8f6c871bd346925067dc254b1d96c4a Mon Sep 17 00:00:00 2001 From: Mael Date: Tue, 12 Jan 2021 10:04:48 +0100 Subject: [PATCH] =?UTF-8?q?export=20de=20parseUnit=20pour=20le=20m=C3=A9ca?= =?UTF-8?q?nisme=20Bar=C3=A8me=20de=20publicodes-ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #1354 --- publicodes/core/source/index.ts | 2 +- publicodes/ui-react/source/mecanisms/Barème.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/publicodes/core/source/index.ts b/publicodes/core/source/index.ts index bef52faf2..bdf9d3fe3 100644 --- a/publicodes/core/source/index.ts +++ b/publicodes/core/source/index.ts @@ -44,7 +44,7 @@ export { reduceAST, transformAST } from './AST/index' export { Evaluation, Unit } from './AST/types' export { capitalise0, formatValue } from './format' export { simplifyNodeUnit } from './nodeUnits' -export { serializeUnit } from './units' +export { parseUnit, serializeUnit } from './units' export { parsePublicodes, utils } export { Rule, RuleNode, ASTNode, EvaluatedNode } export { default as serializeEvaluation } from './serializeEvaluation' diff --git a/publicodes/ui-react/source/mecanisms/Barème.tsx b/publicodes/ui-react/source/mecanisms/Barème.tsx index f8d466742..3da966387 100644 --- a/publicodes/ui-react/source/mecanisms/Barème.tsx +++ b/publicodes/ui-react/source/mecanisms/Barème.tsx @@ -4,7 +4,7 @@ import { Trans } from 'react-i18next' import Explanation from '../Explanation' import styled from 'styled-components' import { Mecanism, NodeValuePointer } from './common' -import { parseUnit } from 'publicodes/source/units' +import { parseUnit } from 'publicodes' export default function Barème({ nodeValue, explanation, unit }) { return (