export de parseUnit pour le mécanisme Barème de publicodes-ui

fixes #1354
pull/1356/head
Mael 2021-01-12 10:04:48 +01:00 committed by Maxime Quandalle
parent 9f32e83a51
commit e81c0a41b8
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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 (