-
Notifications
You must be signed in to change notification settings - Fork 60
Create ActionBar React component - Closes #541 #563
Conversation
src/components/actionBar/index.js
Outdated
import grid from 'flexboxgrid/dist/flexboxgrid.css'; | ||
|
||
const ActionBar = props => ( | ||
<section style={{ margin: '0' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove inline style
import chaiEnzyme from 'chai-enzyme'; | ||
import sinon from 'sinon'; | ||
import sinonChai from 'sinon-chai'; | ||
import ActionBar from './'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the name of file
|
||
it('binds props.primaryButton.onClick to second button onClick', () => { | ||
wrapper.find('Button').at(1).simulate('click'); | ||
expect(props.primaryButton.onClick).to.have.been.calledWith(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the primary button disabled?nI was expecting it not to trigger the handler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not. See disabled: false,
on line 26.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh sorry. yeah. :-D
Thanks Vit, there are just a few changes request. |
Closes #541