File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ class TypeOut extends Component {
3232 * @param {string } word The entire word.
3333 */
3434 addChar ( index , max , words ) {
35- const { nextSpeed , pauseSpeed } = this . props ;
35+ const { typeSpeed , pauseSpeed } = this . props ;
3636 // When we get to the last char in the word we stop read the pauseSpeed
37- // instead of the nextSpeed
38- const addSpeed = index < max ? nextSpeed : pauseSpeed ;
37+ // instead of the typeSpeed
38+ const addSpeed = index < max ? typeSpeed : pauseSpeed ;
3939 const currentWord = words [ 0 ] . slice ( 0 , index ) ;
4040 this . setState ( { currentWord} ) ;
4141
@@ -88,7 +88,7 @@ TypeOut.defaultProps = {
8888 currentWord : null ,
8989 pauseSpeed : 1000 ,
9090 rewindSpeed : 50 ,
91- nextSpeed : 200 ,
91+ typeSpeed : 200 ,
9292 done : null ,
9393} ;
9494
@@ -98,7 +98,7 @@ TypeOut.propTypes = {
9898 words : PropTypes . arrayOf ( PropTypes . string ) . isRequired ,
9999 pauseSpeed : PropTypes . number ,
100100 rewindSpeed : PropTypes . number ,
101- nextSpeed : PropTypes . number ,
101+ typeSpeed : PropTypes . number ,
102102 // done: PropTypes.func,
103103} ;
104104
You can’t perform that action at this time.
0 commit comments