diff --git a/src/components/PeriodDimension/PeriodDimension.js b/src/components/PeriodDimension/PeriodDimension.js index 47b340591..264ef36d2 100644 --- a/src/components/PeriodDimension/PeriodDimension.js +++ b/src/components/PeriodDimension/PeriodDimension.js @@ -52,10 +52,10 @@ const PeriodDimension = ({ PeriodDimension.propTypes = { onSelect: PropTypes.func.isRequired, excludedPeriodTypes: PropTypes.arrayOf(PropTypes.string), + height: PropTypes.string, infoBoxMessage: PropTypes.string, rightFooter: PropTypes.node, selectedPeriods: PropTypes.array, - height: PropTypes.string, } PeriodDimension.defaultProps = { diff --git a/src/components/PeriodDimension/PeriodTransfer.js b/src/components/PeriodDimension/PeriodTransfer.js index 9a6727252..5c9d495e0 100644 --- a/src/components/PeriodDimension/PeriodTransfer.js +++ b/src/components/PeriodDimension/PeriodTransfer.js @@ -234,6 +234,7 @@ PeriodTransfer.propTypes = { onSelect: PropTypes.func.isRequired, dataTest: PropTypes.string, excludedPeriodTypes: PropTypes.arrayOf(PropTypes.string), + height: PropTypes.string, infoBoxMessage: PropTypes.string, periodsSettings: PropTypes.shape({ calendar: PropTypes.string, @@ -247,7 +248,6 @@ PeriodTransfer.propTypes = { name: PropTypes.string, }) ), - height: PropTypes.string, } export default PeriodTransfer diff --git a/src/index.js b/src/index.js index 1202981b5..4518b2c1a 100644 --- a/src/index.js +++ b/src/index.js @@ -336,7 +336,10 @@ export { FYJUL, FYAPR, } from './components/PeriodDimension/utils/index.js' -export { getRelativePeriodsOptionsById } from './components/PeriodDimension/utils/relativePeriods.js' +export { + getRelativePeriodsOptionsById, + getRelativePeriodIds, +} from './components/PeriodDimension/utils/relativePeriods.js' export { getFixedPeriodsOptionsById } from './components/PeriodDimension/utils/fixedPeriods.js' export { default as VisualizationOptions } from './components/Options/VisualizationOptions.js'