Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Stepper] Allow custom step connector #5741

Merged
merged 4 commits into from Dec 10, 2016
Merged

[Stepper] Allow custom step connector #5741

merged 4 commits into from Dec 10, 2016

Conversation

jamesbrewerdev
Copy link

@jamesbrewerdev jamesbrewerdev commented Dec 9, 2016

  • PR has tests / docs demo, and is linted.
  • Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
  • Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

Allows the use of a custom step connector. See #5740.

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

Some minor comments. That looks good aside from them 👍 .

import FontIcon from 'src/FontIcon';
import getMuiTheme from 'src/styles/getMuiTheme';

describe('<Stepper />', () => {
Copy link
Member

Choose a reason for hiding this comment

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

We already have a test under src/Stepper/Stepper.spec.js. That would be better to move those tests their.

</Stepper>
);

assert.equal(wrapper.find(FontIcon).length, 1, 'should contain a <FontIcon /> child');
Copy link
Member

Choose a reason for hiding this comment

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

Use assert.strictEqual( for the strict equality check (===).

case 0:
return (
<p>
For each ad campaign that you create, you can control how much you're willing to
Copy link
Member

Choose a reason for hiding this comment

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

That ugly GitHub code highlighting can be fixed using a string element: {"For each ad..."}.

@oliviertassinari oliviertassinari added component: stepper This is the name of the generic UI component, not the React module! PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI and removed PR: Needs Review labels Dec 9, 2016
@oliviertassinari oliviertassinari added PR: Review Accepted and removed PR: Needs Review PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI labels Dec 10, 2016
@oliviertassinari oliviertassinari merged commit 82c4c62 into mui:master Dec 10, 2016
@oliviertassinari
Copy link
Member

Thanks.

@oliviertassinari oliviertassinari changed the title [Stepper] Allow custom step connector. [Stepper] Allow custom step connector Dec 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: stepper This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants