@jouwomgeving/ui-button
Advanced tools
Comparing version 0.0.2-alpha.dc0d923a to 0.0.2-alpha.edd50df7
{ | ||
"name": "@jouwomgeving/ui-button", | ||
"version": "0.0.2-alpha.dc0d923a", | ||
"version": "0.0.2-alpha.edd50df7", | ||
"license": "MIT", | ||
@@ -18,3 +18,3 @@ "author": "Jouw Omgeving B.V. (https://www.jouwomgeving.nl/)", | ||
"devDependencies": { | ||
"@jouwomgeving/ui-icon": "^0.0.1-alpha.dc0d923a" | ||
"@jouwomgeving/ui-icon": "^0.0.1-alpha.edd50df7" | ||
}, | ||
@@ -21,0 +21,0 @@ "dependencies": { |
@@ -24,6 +24,5 @@ import React from 'react'; | ||
const wrapper = shallow(<Button onClick={onClick} />); | ||
wrapper.find('button').simulate('click'); | ||
wrapper.simulate('click'); | ||
expect(onClick).to.have.property('callCount', 1); | ||
}); | ||
}); |
import React from 'react'; | ||
import { storiesOf, action } from '@kadira/storybook'; | ||
import Button from '../../../'; | ||
import Button from '../../../index'; | ||
import Icon from '@jouwomgeving/ui-icon'; | ||
@@ -62,3 +62,8 @@ | ||
label="Prefix" | ||
prefix={(<SelectedIcon size={18} />)} | ||
prefix={( | ||
<SelectedIcon | ||
color="currentColor" | ||
size={18} | ||
/> | ||
)} | ||
/> | ||
@@ -75,3 +80,8 @@ ); | ||
label="Suffix" | ||
suffix={(<SelectedIcon size={18} />)} | ||
suffix={( | ||
<SelectedIcon | ||
size={18} | ||
color="currentColor" | ||
/> | ||
)} | ||
/> | ||
@@ -78,0 +88,0 @@ ); |
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
20385
12
460
4