- The fix is in! Linty fresh and pretty...
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user