@bbc/psammead-sitewide-links
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -6,2 +6,3 @@ # Psammead Sitewide Links Changelog | ||
|---------|-------------| | ||
| 2.2.1 | [PR#1518](https://github.com/bbc/psammead/pull/1518) Clear unit test warnings | | ||
| 2.2.0 | [PR#1408](https://github.com/bbc/psammead/pull/1408) Use `@bbc/psammead-styles/detection` to detect grid support | | ||
@@ -8,0 +9,0 @@ | 2.1.1 | [PR#1362](https://github.com/bbc/psammead/pull/1362) Use `text-decoration` styling instead of border-bottom | |
{ | ||
"name": "@bbc/psammead-sitewide-links", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "React styled component for a sitewide-links", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -11,3 +11,6 @@ import React from 'react'; | ||
const links = new Array(7).fill(link); | ||
const links = new Array(7).fill(link).map((linkItem, index) => ({ | ||
...linkItem, | ||
text: `${linkItem.text}${index}`, | ||
})); | ||
@@ -14,0 +17,0 @@ shouldMatchSnapshot( |
@@ -11,3 +11,7 @@ import React from 'react'; | ||
const getLinks = count => new Array(count).fill(link); | ||
const getLinks = count => | ||
new Array(count).fill(link).map((linkItem, index) => ({ | ||
...linkItem, | ||
text: `${linkItem.text}${index}`, | ||
})); | ||
@@ -14,0 +18,0 @@ shouldMatchSnapshot( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
45498
642