Where all our button components will recide.
This commit is contained in:
22
client/app/components/buttons/request_button.jsx
Normal file
22
client/app/components/buttons/request_button.jsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import React from 'react';
|
||||
|
||||
class RequestButton extends React.Component {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.state = {textColor: 'white'};
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Text
|
||||
style={{color: this.state.textColor}}
|
||||
onEnter={() => this.setState({textColor: 'red'})}
|
||||
onExit={() => this.setState({textColor: 'white'})}>
|
||||
This text will turn red when you look at it.
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default RequestButton;
|
||||
Reference in New Issue
Block a user