File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ class EmbedMidi extends Component {
8686 < Link
8787 color = 'white'
8888 title = { `Play ${ midi . name } ` }
89- onClick = { this . onClick }
89+ onClick = { this . handleClick }
9090 >
9191 < div class = { `bg-${ mainColor } pv2 ph3 flex` } style = { { height : 45 } } >
9292 < h2 class = 'flex-auto f4 mv0 lh-copy truncate underline-hover' > { midi . name } </ h2 >
@@ -110,7 +110,7 @@ class EmbedMidi extends Component {
110110 )
111111 }
112112
113- onClick = ( ) => {
113+ handleClick = ( ) => {
114114 const { dispatch } = this . context
115115 const { midi } = this . props
116116 dispatch ( 'MIDI_PLAY_PAUSE' , midi . slug )
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ export default class Input extends Component {
4646 pillClass ,
4747 className
4848 ) }
49- onBlur = { this . onBlur }
50- onFocus = { this . onFocus }
49+ onBlur = { this . handleBlur }
50+ onFocus = { this . handleFocus }
5151 placeholder = { placeholder }
5252 spellCheck = 'false'
5353 type = { type }
@@ -60,13 +60,13 @@ export default class Input extends Component {
6060 this . elem = elem
6161 }
6262
63- onFocus = ( event ) => {
63+ handleFocus = ( event ) => {
6464 const { onFocus } = this . props
6565 this . setState ( { focused : true } )
6666 if ( onFocus ) onFocus ( event )
6767 }
6868
69- onBlur = ( event ) => {
69+ handleBlur = ( event ) => {
7070 const { onBlur } = this . props
7171 this . setState ( { focused : false } )
7272 if ( onBlur ) onBlur ( event )
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ export default class Search extends Component {
2424 'o-90' : ! focused
2525 } , 'grow-subtle' , className ) }
2626 pill
27- onInput = { this . onInput }
28- onKeyPress = { this . onKeyPress }
29- onFocus = { this . onFocus }
30- onBlur = { this . onBlur }
27+ onInput = { this . handleInput }
28+ onKeyPress = { this . handleKeyPress }
29+ onFocus = { this . handleFocus }
30+ onBlur = { this . handleBlur }
3131 placeholder = 'Search'
3232 value = { lastSearch }
3333 { ...rest }
@@ -40,24 +40,24 @@ export default class Search extends Component {
4040 dispatch ( 'SEARCH_INPUT' , value )
4141 }
4242
43- onInput = event => {
43+ handleInput = event => {
4444 const value = event . target . value
4545 this . dispatch ( value )
4646 }
4747
48- onKeyPress = event => {
48+ handleKeyPress = event => {
4949 event . stopPropagation ( )
5050 if ( event . key === 'Enter' ) {
5151 const value = event . target . value
5252 if ( value . trim ( ) !== '' ) this . dispatch ( value )
5353 }
5454 }
5555
56- onFocus = ( ) => {
56+ handleFocus = ( ) => {
5757 this . setState ( { focused : true } )
5858 }
5959
60- onBlur = ( ) => {
60+ handleBlur = ( ) => {
6161 this . setState ( { focused : false } )
6262 }
6363}
You can’t perform that action at this time.
0 commit comments