Skip to content

Instantly share code, notes, and snippets.

@zgababa
Created February 27, 2017 15:52
Show Gist options
  • Save zgababa/35ef2f3b457a5e157292631f99de2684 to your computer and use it in GitHub Desktop.
Save zgababa/35ef2f3b457a5e157292631f99de2684 to your computer and use it in GitHub Desktop.
'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