Skip to content

Instantly share code, notes, and snippets.

@edemkumodzi
Last active October 29, 2016 22:14
Show Gist options
  • Save edemkumodzi/dec20b067ab911a71073275c0ec53ee2 to your computer and use it in GitHub Desktop.
Save edemkumodzi/dec20b067ab911a71073275c0ec53ee2 to your computer and use it in GitHub Desktop.
import React, {Component} from 'react';
import {Row, Col} from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
class Task extends Component {
render() {
return (
<div>
<Row>
<Col xs={1}>
<div>
<p style={{textAlign: 'center', fontWeight: 'bold', paddingTop: '10px'}}>{this.props.time}
<br/>
<span>{this.props.period}</span>
</p>
</div>
</Col>
<Col xs={10}>
<h4>{this.props.activity_title}</h4>
<p>{this.props.activity_description}</p>
</Col>
<Col xs={1}>
<Row style={{paddingTop: '10px'}}>
<Col xs={6}>
<FontAwesome name='times' />
</Col>
<Col xs={6}>
<FontAwesome name='check' />
</Col>
</Row>
</Col>
</Row>
</div>
);
}
}
export default Task;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment