Skip to content

Commit

Permalink
feat: expose getRelativePeriodsOptionsById
Browse files Browse the repository at this point in the history
  • Loading branch information
BRaimbault committed Nov 25, 2024
1 parent 5ea8037 commit 7c1938b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/PeriodDimension/PeriodDimension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/PeriodDimension/PeriodTransfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -247,7 +248,6 @@ PeriodTransfer.propTypes = {
name: PropTypes.string,
})
),
height: PropTypes.string,
}

export default PeriodTransfer
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 7c1938b

Please sign in to comment.