- The fix is in! Linty fresh and pretty...

This commit is contained in:
Mike Fitzpatrick
2019-08-08 16:18:08 -04:00
parent dfc4daf696
commit ebb6f47455
52 changed files with 453 additions and 259 deletions

View File

@@ -33,24 +33,28 @@ export default class EventListItem extends Component {
constructor(props) {
super(props);
this._viewEventDetail = this._viewEventDetail.bind(this);
}
_viewEventDetail = () => {
getTimeString() {
const { end, start } = this.props;
return `${start} - ${end}`;
}
_viewEventDetail() {
this.props.setActiveEvent(this.props.id);
this.props.navigation.navigate('Event');
};
}
render() {
const { date, description, end, name, start } = this.props;
const { date, description, name } = this.props;
return (
<TouchableOpacity onPress={this._viewEventDetail}>
<View style={styles.rowContainer}>
<Text>{name}</Text>
<Text>{date}</Text>
<Text>
{start} - {end}
</Text>
<Text>{this.getTimeString()}</Text>
<Text>{description}</Text>
</View>
</TouchableOpacity>