Skip to content

Commit 4250a9e

Browse files
committed
Update dev deps and use package-lock
1 parent e123c32 commit 4250a9e

13 files changed

+10300
-47
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ lib
1010
[t|T]humbs.db
1111

1212
# Testing
13-
coverage
13+
test-results
1414

1515
# IDE
1616
.idea

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: node_js
22
node_js:
33
- "6"
4-
- "7"
4+
- "8"
5+
before_install:
6+
- npm i -g npm
57
after_success:
68
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

examples/Animated.jsx

+9-6
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import Previous from './navigation/Previous';
2323

2424
require('./animations/exampleAnimation.scss');
2525

26-
const Animated = () =>
26+
const Animated = () => (
2727
<Wizard
28-
render={({ step }) =>
28+
render={({ step }) => (
2929
<ReactCSSTransitionGroup
3030
transitionName="example"
3131
transitionEnterTimeout={500}
@@ -41,11 +41,12 @@ const Animated = () =>
4141
<Step path="gandalf" className="example-step">
4242
<Gandalf />
4343
<Navigation
44-
render={({ next, previous }) =>
44+
render={({ next, previous }) => (
4545
<div>
4646
<Previous previous={previous} label="Back" />
4747
<Next next={next} label="Continue" />
48-
</div>}
48+
</div>
49+
)}
4950
/>
5051
</Step>
5152
<Step path="dumbledore" className="example-step">
@@ -55,7 +56,9 @@ const Animated = () =>
5556
</Navigation>
5657
</Step>
5758
</Steps>
58-
</ReactCSSTransitionGroup>}
59-
/>;
59+
</ReactCSSTransitionGroup>
60+
)}
61+
/>
62+
);
6063

6164
export default Animated;

examples/Progress.jsx

+12-8
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import Dumbledore from './components/Dumbledore';
2121
import Next from './navigation/Next';
2222
import Previous from './navigation/Previous';
2323

24-
const Progress = () =>
24+
const Progress = () => (
2525
<Wizard
26-
render={({ step, steps }) =>
26+
render={({ step, steps }) => (
2727
<div>
2828
<ProgressBar step={step} steps={steps} />
2929
<Steps>
@@ -36,11 +36,12 @@ const Progress = () =>
3636
<Step path="gandalf" name="Gandalf" location="Middle Earth">
3737
<Gandalf />
3838
<Navigation
39-
render={({ next, previous }) =>
39+
render={({ next, previous }) => (
4040
<div>
4141
<Previous previous={previous} label="Back" />
4242
<Next next={next} label="Continue" />
43-
</div>}
43+
</div>
44+
)}
4445
/>
4546
</Step>
4647
<Step path="dumbledore" name="Dumbledore" location="Hogwarts">
@@ -50,13 +51,16 @@ const Progress = () =>
5051
</Navigation>
5152
</Step>
5253
</Steps>
53-
</div>}
54-
/>;
54+
</div>
55+
)}
56+
/>
57+
);
5558

56-
const ProgressBar = ({ step, steps }) =>
59+
const ProgressBar = ({ step, steps }) => (
5760
<div>
5861
{steps.map(s => s.path).indexOf(step.path) + 1}/{steps.length} - {step.name} - {step.location}
59-
</div>;
62+
</div>
63+
);
6064

6165
const stepShape = PropTypes.shape({
6266
path: PropTypes.string,

examples/Routed.jsx

+9-6
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import Dumbledore from './components/Dumbledore';
2121
import Next from './navigation/Next';
2222
import Previous from './navigation/Previous';
2323

24-
const Routed = () =>
24+
const Routed = () => (
2525
<Route
26-
render={({ history, match: { url } }) =>
26+
render={({ history, match: { url } }) => (
2727
<Wizard history={history} basename={url}>
2828
<Steps>
2929
<Step path="merlin">
@@ -35,11 +35,12 @@ const Routed = () =>
3535
<Step path="gandalf">
3636
<Gandalf />
3737
<Navigation
38-
render={({ next, previous }) =>
38+
render={({ next, previous }) => (
3939
<div>
4040
<Previous previous={previous} label="Back" />
4141
<Next next={next} label="Continue" />
42-
</div>}
42+
</div>
43+
)}
4344
/>
4445
</Step>
4546
<Step path="dumbledore">
@@ -49,7 +50,9 @@ const Routed = () =>
4950
</Navigation>
5051
</Step>
5152
</Steps>
52-
</Wizard>}
53-
/>;
53+
</Wizard>
54+
)}
55+
/>
56+
);
5457

5558
export default Routed;

examples/Simple.jsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Dumbledore from './components/Dumbledore';
2020
import Next from './navigation/Next';
2121
import Previous from './navigation/Previous';
2222

23-
const Simple = () =>
23+
const Simple = () => (
2424
<Wizard>
2525
<Steps>
2626
<Step path="merlin">
@@ -32,11 +32,12 @@ const Simple = () =>
3232
<Step path="gandalf">
3333
<Gandalf />
3434
<Navigation
35-
render={({ next, previous }) =>
35+
render={({ next, previous }) => (
3636
<div>
3737
<Previous previous={previous} label="Back" />
3838
<Next next={next} label="Continue" />
39-
</div>}
39+
</div>
40+
)}
4041
/>
4142
</Step>
4243
<Step path="dumbledore">
@@ -46,6 +47,7 @@ const Simple = () =>
4647
</Navigation>
4748
</Step>
4849
</Steps>
49-
</Wizard>;
50+
</Wizard>
51+
);
5052

5153
export default Simple;

examples/navigation/Next.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
import React from 'react';
1616
import PropTypes from 'prop-types';
1717

18-
const Next = ({ className, disabled, label, next }) =>
18+
const Next = ({ className, disabled, label, next }) => (
1919
<button className={className} onClick={next} disabled={disabled}>
2020
{label}
21-
</button>;
21+
</button>
22+
);
2223

2324
Next.propTypes = {
2425
className: PropTypes.string,

examples/navigation/Previous.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
import React from 'react';
1616
import PropTypes from 'prop-types';
1717

18-
const Previous = ({ className, disabled, label, previous }) =>
18+
const Previous = ({ className, disabled, label, previous }) => (
1919
<button className={className} onClick={previous} disabled={disabled}>
2020
{label}
21-
</button>;
21+
</button>
22+
);
2223

2324
Previous.propTypes = {
2425
className: PropTypes.string,

index.dev.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import SkipStep from './examples/SkipStep';
1010
import Progress from './examples/Progress';
1111
import Animated from './examples/Animated';
1212

13-
const Index = () =>
13+
const Index = () => (
1414
<ul>
1515
<li>
1616
<Link to="/simple">Simple</Link>
@@ -27,7 +27,8 @@ const Index = () =>
2727
<li>
2828
<Link to="/animated">Animated</Link>
2929
</li>
30-
</ul>;
30+
</ul>
31+
);
3132

3233
render(
3334
<BrowserRouter>

0 commit comments

Comments
 (0)