diff --git a/app/views/seats/_sections.json.props b/app/views/seats/_sections.json.props index 09b51f3..25cc16d 100644 --- a/app/views/seats/_sections.json.props +++ b/app/views/seats/_sections.json.props @@ -5,6 +5,12 @@ json.array! sections do |section| json.y seat.y json.venue_floor_seat_path venue_floor_seat_path(venue, floor, seat.row_number) json.aria_label seat.row_number + + if Current.cart.include?(seat) + json.href "#seat-icon-selected" + else + json.href "#seat-icon-unselected" + end end end end diff --git a/app/views/seats/index.js b/app/views/seats/index.js index e9a10c1..d4c6d11 100644 --- a/app/views/seats/index.js +++ b/app/views/seats/index.js @@ -14,7 +14,7 @@ const buildSectionElements = (sections) => { @@ -68,6 +68,15 @@ export default (props) => { + + + + { sectionElements }