Skip to content

Commit 431627e

Browse files
committed
props validation for travel container
1 parent 4b14c00 commit 431627e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/app/containers/TravelContainer.jsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import MainSlider from '../components/MainSlider';
34

45
const TravelContainer = ({
@@ -28,4 +29,14 @@ const TravelContainer = ({
2829
</div>
2930
</div>
3031
);
32+
33+
TravelContainer.propTypes = {
34+
playForward: PropTypes.func.isRequired,
35+
moveBackward: PropTypes.func.isRequired,
36+
moveForward: PropTypes.func.isRequired,
37+
snapshotsLength: PropTypes.number.isRequired,
38+
handleChangeSnapshot: PropTypes.func.isRequired,
39+
handleJumpSnapshot: PropTypes.func.isRequired,
40+
snapshotIndex: PropTypes.number.isRequired,
41+
};
3142
export default TravelContainer;

0 commit comments

Comments
 (0)