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 (