diff --git a/src/components/Organisms/WYMDCarousel/WYMDCarousel.js b/src/components/Organisms/WYMDCarousel/WYMDCarousel.js index b5907042..b53d1900 100644 --- a/src/components/Organisms/WYMDCarousel/WYMDCarousel.js +++ b/src/components/Organisms/WYMDCarousel/WYMDCarousel.js @@ -209,27 +209,6 @@ WYMDCarousel.propTypes = { url: PropTypes.string }) }), - node10Amount: PropTypes.string, - node10Copy: PropTypes.string, - node10Image: PropTypes.shape({ - file: PropTypes.shape({ - url: PropTypes.string - }) - }), - node11Amount: PropTypes.string, - node11Copy: PropTypes.string, - node11Image: PropTypes.shape({ - file: PropTypes.shape({ - url: PropTypes.string - }) - }), - node12Amount: PropTypes.string, - node12Copy: PropTypes.string, - node12Image: PropTypes.shape({ - file: PropTypes.shape({ - url: PropTypes.string - }) - }), autoPlay: PropTypes.bool.isRequired, headerCopy: PropTypes.string.isRequired, peopleHelpedText: PropTypes.string.isRequired, diff --git a/src/components/Organisms/WYMDCarousel/_utils.js b/src/components/Organisms/WYMDCarousel/_utils.js index 36c90597..cdd7ab06 100644 --- a/src/components/Organisms/WYMDCarousel/_utils.js +++ b/src/components/Organisms/WYMDCarousel/_utils.js @@ -3,7 +3,7 @@ const formatItems = thisData => { const allValidNodes = []; // Set at a Content Type field level, so doesn't need to be dynamic: - const possibleNumberOfNodes = 12; + const possibleNumberOfNodes = 9; // Grab ALL keys from our raw data: const theseKeys = Object.keys(thisData); diff --git a/src/styleguide/data/data.js b/src/styleguide/data/data.js index 7d6f5c04..ed350f6d 100644 --- a/src/styleguide/data/data.js +++ b/src/styleguide/data/data.js @@ -120,27 +120,6 @@ const carouselItemsComplete = { file: { url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png' } - }, - node10Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.', - node10Amount: '10,000', - node10Image: { - file: { - url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png' - } - }, - node11Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.', - node11Amount: '11,000', - node11Image: { - file: { - url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png' - } - }, - node12Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.750,000', - node12Amount: '12,000', - node12Image: { - file: { - url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png' - } } }; @@ -200,30 +179,9 @@ const carouselItemsIncomplete = { url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png' } }, - node9Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.', - node9Amount: null, - node9Image: null, - node10Copy: null, - node10Amount: '10,000', - node10Image: { - file: { - url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png' - } - }, - node11Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.', - node11Amount: '11,000', - node11Image: { - file: { - url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png' - } - }, - node12Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.750,000', - node12Amount: null, - node12Image: { - file: { - url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png' - } - } + node9_Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.', + node9_Amount: null, + node9_Image: null }; const carouselItemsMinimal = {