Update Button with correct proptypes

This commit is contained in:
Jaco Greeff 2016-12-08 14:53:57 +01:00
parent a5b5277a88
commit 1ab4ee3781
2 changed files with 4 additions and 5 deletions

View File

@ -17,16 +17,15 @@
import React, { Component, PropTypes } from 'react';
import { FlatButton } from 'material-ui';
import { nodeOrStringProptype } from '~/util/proptypes';
export default class Button extends Component {
static propTypes = {
backgroundColor: PropTypes.string,
className: PropTypes.string,
disabled: PropTypes.bool,
icon: PropTypes.node,
label: PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.object
]),
label: nodeOrStringProptype(),
onClick: PropTypes.func,
primary: PropTypes.bool
}

View File

@ -25,7 +25,7 @@ function renderShallow (props) {
);
}
describe.only('ui/Button', () => {
describe('ui/Button', () => {
describe('rendering', () => {
it('renders defaults', () => {
expect(renderShallow()).to.be.ok;