Created
February 27, 2017 15:52
-
-
Save zgababa/35ef2f3b457a5e157292631f99de2684 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { PropTypes } from 'react'; | |
import Radium from 'radium'; | |
const styles = { | |
rightArrow : { | |
height : '31px', | |
width : '32px', | |
backgroundColor : 'red', | |
position : 'absolute', | |
top : '423px', | |
left : '299px', | |
opacity : 0, | |
cursor : 'pointer' | |
}, | |
leftArrow : { | |
height : '31px', | |
width : '35px', | |
backgroundColor : 'blue', | |
position : 'absolute', | |
top : '423px', | |
left : '240px', | |
opacity : 0, | |
cursor : 'pointer' | |
} | |
}; | |
function Paddle(props) { | |
return ( | |
<div> | |
<button className="Paddle-right" style={styles.rightArrow} onClick={props.arrowRight} /> | |
<button className="Paddle-left" style={styles.leftArrow} onClick={props.arrowLeft} /> | |
</div> | |
); | |
} | |
Paddle.propTypes = { | |
arrowRight : PropTypes.func, | |
arrowLeft : PropTypes.func | |
}; | |
export default new Radium(Paddle); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment