|
|
@ -247,12 +247,14 @@ extension TokensViewController: UITableViewDelegate { |
|
|
|
return cellViewModel.cellHeight |
|
|
|
return cellViewModel.cellHeight |
|
|
|
case .stormBird: |
|
|
|
case .stormBird: |
|
|
|
let cellViewModel = TicketTokenViewCellViewModel( |
|
|
|
let cellViewModel = TicketTokenViewCellViewModel( |
|
|
|
|
|
|
|
config: dataStore.config, |
|
|
|
token: token, |
|
|
|
token: token, |
|
|
|
ticker: viewModel.ticker(for: token) |
|
|
|
ticker: viewModel.ticker(for: token) |
|
|
|
) |
|
|
|
) |
|
|
|
return cellViewModel.cellHeight |
|
|
|
return cellViewModel.cellHeight |
|
|
|
case .stormBirdOrder: |
|
|
|
case .stormBirdOrder: |
|
|
|
let cellViewModel = TicketTokenViewCellViewModel( |
|
|
|
let cellViewModel = TicketTokenViewCellViewModel( |
|
|
|
|
|
|
|
config: dataStore.config, |
|
|
|
token: token, |
|
|
|
token: token, |
|
|
|
ticker: viewModel.ticker(for: token) |
|
|
|
ticker: viewModel.ticker(for: token) |
|
|
|
) |
|
|
|
) |
|
|
@ -319,6 +321,7 @@ extension TokensViewController: UITableViewDataSource { |
|
|
|
let cell = tableView.dequeueReusableCell(withIdentifier: TicketTokenViewCell.identifier, for: indexPath) as! TicketTokenViewCell |
|
|
|
let cell = tableView.dequeueReusableCell(withIdentifier: TicketTokenViewCell.identifier, for: indexPath) as! TicketTokenViewCell |
|
|
|
cell.configure( |
|
|
|
cell.configure( |
|
|
|
viewModel: .init( |
|
|
|
viewModel: .init( |
|
|
|
|
|
|
|
config: dataStore.config, |
|
|
|
token: token, |
|
|
|
token: token, |
|
|
|
ticker: viewModel.ticker(for: token) |
|
|
|
ticker: viewModel.ticker(for: token) |
|
|
|
) |
|
|
|
) |
|
|
@ -329,6 +332,7 @@ extension TokensViewController: UITableViewDataSource { |
|
|
|
let cell = tableView.dequeueReusableCell(withIdentifier: TicketTokenViewCell.identifier, for: indexPath) as! TicketTokenViewCell |
|
|
|
let cell = tableView.dequeueReusableCell(withIdentifier: TicketTokenViewCell.identifier, for: indexPath) as! TicketTokenViewCell |
|
|
|
cell.configure( |
|
|
|
cell.configure( |
|
|
|
viewModel: .init( |
|
|
|
viewModel: .init( |
|
|
|
|
|
|
|
config: dataStore.config, |
|
|
|
token: token, |
|
|
|
token: token, |
|
|
|
ticker: viewModel.ticker(for: token) |
|
|
|
ticker: viewModel.ticker(for: token) |
|
|
|
) |
|
|
|
) |
|
|
|