Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor base module, cart and account flows #69

Merged
merged 5 commits into from
Jan 29, 2018

Conversation

radyslavkrechet
Copy link
Contributor

No description provided.

selectedOrder = viewModel.items.value[index]
performSegue(withIdentifier: SegueIdentifiers.toOrderDetails, sender: self)
extension OrdersListViewController: OrdersListTableProviderDelegate {
func provider(_ provider: OrdersListTableProvider, didSelectItemAt index: Int) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it's better to pass certain object instead of index?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it makes sense because now we have reference on items.

guard let productVariant = viewModel.productVariant(at: index) else {
return
}
func provider(_ provider: OrdersDetailsTableProvider, didSelectProductVariant productVariant: ProductVariant) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe better:
func provider(_ provider: OrdersDetailsTableProvider, didSelect productVariant: ProductVariant)
?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok

@radyslavkrechet radyslavkrechet merged commit acf2f40 into develop Jan 29, 2018
@radyslavkrechet radyslavkrechet deleted the feature/refactoring branch January 29, 2018 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants