Skip to content

Instantly share code, notes, and snippets.

@edemkumodzi
Created November 7, 2016 18:40
Show Gist options
  • Save edemkumodzi/d27ca71f4bb1a8441909b062c22a1e37 to your computer and use it in GitHub Desktop.
Save edemkumodzi/d27ca71f4bb1a8441909b062c22a1e37 to your computer and use it in GitHub Desktop.
import React, {Component} from 'react';
import {Row, Col, Button} from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
class AddButton extends Component {
handleClick(){
this.props.onClick();
}
render() {
return (
<div>
<Row>
<Col xs={10}></Col>
<Col xs={2}>
<Button bsStyle="danger" bsSize="large" onClick={this.handleClick.bind(this)}>
<FontAwesome name='plus' />
</Button>
</Col>
</Row>
</div>
);
}
}
export default AddButton;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment