react-oui-icons
Advanced tools
Comparing version 2.1.1 to 2.3.0
@@ -8,3 +8,4 @@ # Change Log | ||
## Unreleased | ||
## 2.2.2 - 208-08-24 | ||
- [Feature] Add getting-started icon | ||
@@ -11,0 +12,0 @@ ## 2.1.1 - 2018-05-16 |
{ | ||
"name": "react-oui-icons", | ||
"version": "2.1.1", | ||
"version": "2.3.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "src/index.js", |
@@ -6,2 +6,4 @@ import PropTypes from 'prop-types'; | ||
const HELP_ICON_TITLE = 'help'; | ||
const propTypes = { | ||
@@ -90,3 +92,5 @@ description: PropTypes.string, | ||
{...props}> | ||
<title>{icon.title}</title> | ||
{ icon.title !== HELP_ICON_TITLE && ( | ||
<title>{icon.title}</title> | ||
) } | ||
<desc>{ description }</desc> | ||
@@ -93,0 +97,0 @@ { content } |
@@ -79,2 +79,10 @@ import React from 'react' | ||
}); | ||
it('should not contain <title> when the "help" icon is used', () => { | ||
const component = shallow( | ||
<Icon | ||
name="help" | ||
/>); | ||
expect(component.contains(<title>help</title>)).toEqual(false); | ||
}); | ||
// | ||
@@ -81,0 +89,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
350667
5687