File tree Expand file tree Collapse file tree 2 files changed +0
-51
lines changed Expand file tree Collapse file tree 2 files changed +0
-51
lines changed Original file line number Diff line number Diff line change @@ -81,18 +81,11 @@ class MainContainer extends Component {
81
81
}
82
82
}
83
83
84
- < << << << HEAD
85
84
play ( speed = 1000 ) {
86
85
globalPlaying = ! globalPlaying ;
87
86
this . setState ( { playing : globalPlaying } , ( ) => {
88
87
const { playing } = this . state ;
89
88
if ( playing ) {
90
- === === =
91
- play ( ) {
92
- globalPlaying = ! globalPlaying ;
93
- this . setState ( { playing : globalPlaying } , ( ) => {
94
- if ( this . state . playing ) {
95
- >>> >>> > dev
96
89
intervalId = setInterval ( ( ) => {
97
90
const { snapshots, snapshotIndex } = this . state ;
98
91
if ( snapshotIndex < snapshots . length - 1 ) {
@@ -102,15 +95,9 @@ class MainContainer extends Component {
102
95
// clear interval when play reaches the end
103
96
globalPlaying = false ;
104
97
clearInterval ( intervalId ) ;
105
- < << << << HEAD
106
98
this . setState ( { playing : false } ) ;
107
99
}
108
100
} , speed ) ;
109
- = === ===
110
- this . setState ( { playing : false } )
111
- }
112
- } , 1000 ) ;
113
- > >>> >>> dev
114
101
} else {
115
102
clearInterval ( intervalId ) ;
116
103
}
@@ -189,14 +176,9 @@ class MainContainer extends Component {
189
176
moveBackward = { this . moveBackward }
190
177
moveForward = { this . moveForward }
191
178
play = { this . play }
192
- << << << < HEAD
193
179
pause = { this . pause }
194
180
playing = { playing }
195
181
playSpeed = { playSpeed }
196
- = === ===
197
- playing = { playing }
198
- pause = { this . pause }
199
- > >>> >>> dev
200
182
/>
201
183
< ButtonsContainer mode = { mode } toggleMode = { this . toggleMode } />
202
184
</ div >
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
3
3
import MainSlider from '../components/MainSlider' ;
4
4
import Dropdown from '../components/Dropdown' ;
5
5
6
- < << << << HEAD
7
6
const options = [
8
7
{ value : 2000 , label : '0.5x' } ,
9
8
{ value : 1000 , label : '1.0x' } ,
@@ -63,38 +62,6 @@ class TravelContainer extends Component {
63
62
) ;
64
63
}
65
64
}
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
98
65
99
66
TravelContainer . propTypes = {
100
67
pause : PropTypes . func . isRequired ,
You can’t perform that action at this time.
0 commit comments