Skip to content

Commit f91ecd6

Browse files
committed
Add rowheader to tih column
1 parent 8fab4e7 commit f91ecd6

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/components/TodayInHistoryColumnWithControls.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ const TodayInHistoryColumnWithControls = ({
6767
return processedShows;
6868
}, [shows, artistSlug, dateAsc, sbdOnly]);
6969

70-
const tours = {};
71-
7270
return (
7371
<ColumnWithToggleControls
7472
heading={year ? year : 'Today In History'}
@@ -87,20 +85,10 @@ const TodayInHistoryColumnWithControls = ({
8785
processedShows.map((show) => {
8886
const { year, month, day } = splitShowDate(show.display_date);
8987
const { venue, avg_duration, tour } = show;
90-
let tourName = '';
91-
92-
// keep track of which tours we've displayed
93-
if (tour) {
94-
if (!tours[tour.id]) tourName = tour.name ?? '';
95-
96-
tours[tour.id] = true;
97-
}
9888

9989
return (
10090
<div key={show.id}>
101-
{tourName && (
102-
<RowHeader>{tourName === 'Not Part of a Tour' ? '' : tourName}</RowHeader>
103-
)}
91+
<RowHeader>{year}</RowHeader>
10492
<Row
10593
href={`/${artistSlug}/${year}/${month}/${day}`}
10694
activeSegments={{

0 commit comments

Comments
 (0)