Skip to content

Commit aaf5bf3

Browse files
committed
merged with dev
1 parent 11afd76 commit aaf5bf3

File tree

2 files changed

+0
-51
lines changed

2 files changed

+0
-51
lines changed

src/app/containers/MainContainer.jsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,11 @@ class MainContainer extends Component {
8181
}
8282
}
8383

84-
<<<<<<< HEAD
8584
play(speed = 1000) {
8685
globalPlaying = !globalPlaying;
8786
this.setState({ playing: globalPlaying }, () => {
8887
const { playing } = this.state;
8988
if (playing) {
90-
=======
91-
play() {
92-
globalPlaying = !globalPlaying;
93-
this.setState({ playing: globalPlaying }, () => {
94-
if (this.state.playing) {
95-
>>>>>>> dev
9689
intervalId = setInterval(() => {
9790
const { snapshots, snapshotIndex } = this.state;
9891
if (snapshotIndex < snapshots.length - 1) {
@@ -102,15 +95,9 @@ class MainContainer extends Component {
10295
// clear interval when play reaches the end
10396
globalPlaying = false;
10497
clearInterval(intervalId);
105-
<<<<<<< HEAD
10698
this.setState({ playing: false });
10799
}
108100
}, speed);
109-
=======
110-
this.setState({ playing: false })
111-
}
112-
}, 1000);
113-
>>>>>>> dev
114101
} else {
115102
clearInterval(intervalId);
116103
}
@@ -189,14 +176,9 @@ class MainContainer extends Component {
189176
moveBackward={this.moveBackward}
190177
moveForward={this.moveForward}
191178
play={this.play}
192-
<<<<<<< HEAD
193179
pause={this.pause}
194180
playing={playing}
195181
playSpeed={playSpeed}
196-
=======
197-
playing={playing}
198-
pause={this.pause}
199-
>>>>>>> dev
200182
/>
201183
<ButtonsContainer mode={mode} toggleMode={this.toggleMode} />
202184
</div>

src/app/containers/TravelContainer.jsx

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
33
import MainSlider from '../components/MainSlider';
44
import Dropdown from '../components/Dropdown';
55

6-
<<<<<<< HEAD
76
const options = [
87
{ value: 2000, label: '0.5x' },
98
{ value: 1000, label: '1.0x' },
@@ -63,38 +62,6 @@ class TravelContainer extends Component {
6362
);
6463
}
6564
}
66-
=======
67-
const TravelContainer = ({
68-
moveBackward,
69-
moveForward,
70-
snapshotsLength,
71-
handleChangeSnapshot,
72-
handleJumpSnapshot,
73-
snapshotIndex,
74-
play,
75-
playing,
76-
pause,
77-
}) => (
78-
<div className="travel-container">
79-
<div className="play-button" onClick={play}>
80-
{playing ? 'Pause' : 'Play'}
81-
</div>
82-
<MainSlider
83-
snapshotLength={snapshotsLength}
84-
handleChangeSnapshot={handleChangeSnapshot}
85-
snapshotIndex={snapshotIndex}
86-
handleJumpSnapshot={handleJumpSnapshot}
87-
pause={pause}
88-
/>
89-
<div className="backward-button" onClick={moveBackward}>
90-
{'<'}
91-
</div>
92-
<div className="forward-button" onClick={moveForward}>
93-
{'>'}
94-
</div>
95-
</div>
96-
);
97-
>>>>>>> dev
9865

9966
TravelContainer.propTypes = {
10067
pause: PropTypes.func.isRequired,

0 commit comments

Comments
 (0)