Skip to content

Commit

Permalink
feat: add height property to PeriodTransfer
Browse files Browse the repository at this point in the history
  • Loading branch information
BRaimbault authored Nov 19, 2024
1 parent 99ae0fd commit 5ea8037
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/PeriodDimension/PeriodTransfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const PeriodTransfer = ({
excludedPeriodTypes,
periodsSettings,
infoBoxMessage,
height = TRANSFER_HEIGHT,
}) => {
const defaultRelativePeriodType = excludedPeriodTypes.includes(MONTHLY)
? getRelativePeriodsOptionsById(QUARTERLY)
Expand Down Expand Up @@ -196,7 +197,7 @@ const PeriodTransfer = ({
selected={selectedItems.map((period) => period.id)}
leftHeader={renderLeftHeader()}
enableOrderChange
height={TRANSFER_HEIGHT}
height={height}
optionsWidth={TRANSFER_OPTIONS_WIDTH}
selectedWidth={TRANSFER_SELECTED_WIDTH}
selectedEmptyComponent={renderEmptySelection()}
Expand Down Expand Up @@ -246,6 +247,7 @@ PeriodTransfer.propTypes = {
name: PropTypes.string,
})
),
height: PropTypes.string,

Check failure on line 250 in src/components/PeriodDimension/PeriodTransfer.js

View workflow job for this annotation

GitHub Actions / unit

Prop types declarations should be sorted alphabetically
}

export default PeriodTransfer

0 comments on commit 5ea8037

Please sign in to comment.