@bbc/psammead-navigation
Advanced tools
Comparing version 2.2.10 to 2.2.11
@@ -6,2 +6,3 @@ # Psammead Navigation Changelog | ||
|---------|-------------| | ||
| 2.2.11 | [PR#1963](https://github.com/bbc/psammead/pull/2092) Refactored navigation component | ||
| 2.2.10 | [PR#2081](https://github.com/bbc/psammead/pull/2081) Talos - Bump Dependencies - @bbc/psammead-styles, @bbc/psammead-visually-hidden-text | | ||
@@ -8,0 +9,0 @@ | 2.2.9 | [PR#1926](https://github.com/bbc/psammead/pull/1926) Update component storybook to use latest inputProvider changes | |
{ | ||
"name": "@bbc/psammead-navigation", | ||
"version": "2.2.10", | ||
"version": "2.2.11", | ||
"description": "A navigation bar to use on index pages", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -23,7 +23,6 @@ import React from 'react'; | ||
{ | ||
title: 'igbo with Brand', | ||
title: 'igbo', | ||
skipLinkText: 'Wụga n’ọdịnaya', | ||
currentPageText: 'Current page', | ||
data: igboNavData, | ||
brand: true, | ||
}, | ||
@@ -158,3 +157,6 @@ { | ||
const stories = storiesOf('Components|Navigation', module) | ||
const storiesWithoutBrand = storiesOf( | ||
'Components|Navigation/without brand', | ||
module, | ||
) | ||
.addDecorator(withKnobs) | ||
@@ -164,6 +166,6 @@ .addDecorator(dirDecorator); | ||
navStoriesData.map(item => { | ||
const { title, skipLinkText, currentPageText, data, brand } = item; | ||
return stories.add( | ||
const { title, skipLinkText, currentPageText, data } = item; | ||
return storiesWithoutBrand.add( | ||
title, | ||
navigationStory(skipLinkText, currentPageText, data, brand), | ||
navigationStory(skipLinkText, currentPageText, data), | ||
{ | ||
@@ -174,1 +176,18 @@ notes, | ||
}); | ||
const storiesWithBrand = storiesOf('Components|Navigation/with brand', module) | ||
.addDecorator(withKnobs) | ||
.addDecorator(dirDecorator); | ||
storiesWithBrand.add( | ||
navStoriesData[0].title, | ||
navigationStory( | ||
navStoriesData[0].skipLinkText, | ||
navStoriesData[0].currentPageText, | ||
igboNavData, | ||
true, | ||
), | ||
{ | ||
notes, | ||
}, | ||
); |
44890
857