Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Create ActionBar React component - Closes #541 #563

Merged
merged 6 commits into from
Aug 8, 2017
Merged

Conversation

slaweet
Copy link
Contributor

@slaweet slaweet commented Aug 7, 2017

Closes #541

import grid from 'flexboxgrid/dist/flexboxgrid.css';

const ActionBar = props => (
<section style={{ margin: '0' }}
Copy link
Contributor

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 './';
Copy link
Contributor

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();
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh sorry. yeah. :-D

@reyraa
Copy link
Contributor

reyraa commented Aug 8, 2017

Thanks Vit, there are just a few changes request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants