Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

[Shows] Fixed bug where current and upcoming shows were not properly wrapping #201

Merged
merged 1 commit into from
Jul 12, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/components/artist/shows/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ class Shows extends React.Component {

currentAndUpcomingList() {
if (this.props.artist.current_shows.length || this.props.artist.upcoming_shows.length) {
const shows = [].concat.apply([], [this.props.artist.current_shows, this.props.artist.upcoming_shows]);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If they're in separate lists, the wrapping is off and the view will start a new row for upcoming shows. This way, we have one container for all Current & Upcoming shows.

return (
<View style={{ marginBottom: 20 }}>
<SerifText style={styles.title}>Current & Upcoming Shows</SerifText>
<LargeShowsList shows={this.props.artist.current_shows} />
<LargeShowsList shows={this.props.artist.upcoming_shows} />
<LargeShowsList shows={shows} />
</View>
);
}
Expand Down