diff --git a/Trust/Tokens/ViewControllers/Tickets.storyboard b/Trust/Tokens/ViewControllers/Tickets.storyboard index d98f24bad..dd433246c 100644 --- a/Trust/Tokens/ViewControllers/Tickets.storyboard +++ b/Trust/Tokens/ViewControllers/Tickets.storyboard @@ -11,10 +11,10 @@ - + - + @@ -58,87 +58,27 @@ - + - + - - - - - - - - - - + + - - - - - - - - - - - - - - - + + + + - - - - - - + @@ -226,17 +166,11 @@ - - - - - - - + - + diff --git a/Trust/Tokens/Views/TicketTableViewCell.swift b/Trust/Tokens/Views/TicketTableViewCell.swift index 17e700bf5..36c416426 100644 --- a/Trust/Tokens/Views/TicketTableViewCell.swift +++ b/Trust/Tokens/Views/TicketTableViewCell.swift @@ -9,20 +9,9 @@ import UIKit class TicketTableViewCell: UITableViewCell { - - @IBOutlet weak var ticketNumberLabel: UILabel! - @IBOutlet weak var nameLabel: UILabel! - @IBOutlet weak var venueLabel: UILabel! - @IBOutlet weak var dateLabel: UILabel! - @IBOutlet weak var seatLabel: UILabel! - @IBOutlet weak var zoneLabel: UILabel! + @IBOutlet weak var ticketView: TicketView! func configure(ticketHolder: TicketHolder) { - ticketNumberLabel.text = ticketHolder.ticketCount - nameLabel.text = ticketHolder.name - venueLabel.text = ticketHolder.venue - dateLabel.text = ticketHolder.date.format("dd MMM yyyy") - zoneLabel.text = ticketHolder.zone - seatLabel.text = ticketHolder.seatRange + ticketView.configure(ticketHolder: ticketHolder) } }