@@ -11,7 +11,8 @@ import {
1111
1212const ImpactSlider = ( {
1313 heading, cartID, donateLink, rowID, items, step, max,
14- backgroundColour = 'grey_light' , opacityAnimation = false , children, defaultSliderValue = null
14+ backgroundColour = 'grey_light' , opacityAnimation = false , children,
15+ defaultSliderValue = null , paddingTop = '2rem' , paddingBottom = '2rem'
1516} ) => {
1617 // Use the lowest possible amount as our default:
1718 const [ currentAmount , setCurrentAmount ] = useState ( defaultSliderValue || step ) ;
@@ -28,7 +29,12 @@ const ImpactSlider = ({
2829 } ;
2930
3031 return (
31- < OuterWrapper backgroundColour = { backgroundColour } id = { rowID } >
32+ < OuterWrapper
33+ backgroundColour = { backgroundColour }
34+ id = { rowID }
35+ paddingTop = { paddingTop }
36+ paddingBottom = { paddingBottom }
37+ >
3238 < InnerWrapper >
3339 < Text tag = "h1" family = "Anton" weight = "normal" size = "xl" > { heading } </ Text >
3440 < Copy >
@@ -82,6 +88,8 @@ ImpactSlider.propTypes = {
8288 defaultSliderValue : PropTypes . number ,
8389 opacityAnimation : PropTypes . bool ,
8490 backgroundColour : PropTypes . string ,
91+ paddingTop : PropTypes . string ,
92+ paddingBottom : PropTypes . string ,
8593 items : PropTypes . arrayOf (
8694 PropTypes . shape ( {
8795 poundsPerItem : PropTypes . number . isRequired ,
0 commit comments