Skip to content

Commit

Permalink
Remove ReaderRecommendedSiteCardCell
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Nov 13, 2024
1 parent db180cf commit 5066055
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 231 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,3 @@ class ReaderSitesCardCell: ReaderTopicsTableCardCell {
protocol ReaderSitesCardCellDelegate: ReaderTopicsTableCardCellDelegate {
func handleFollowActionForTopic(_ topic: ReaderAbstractTopic, for cell: ReaderSitesCardCell)
}

extension ReaderSitesCardCell: ReaderRecommendedSitesCardCellDelegate {
func handleFollowActionForCell(_ cell: ReaderRecommendedSiteCardCell) {
guard
let indexPath = self.tableView.indexPath(for: cell),
let topic = data[indexPath.row] as? ReaderSiteTopic
else {
return
}

(delegate as? ReaderSitesCardCellDelegate)?.handleFollowActionForTopic(topic, for: self)

// Track Follow Action
var properties = [String: Any]()
properties[WPAppAnalyticsKeyFollowAction] = !topic.following
properties[WPAppAnalyticsKeyBlogID] = topic.siteID

WPAnalytics.trackReader(.readerSuggestedSiteToggleFollow, properties: properties)
}
}

0 comments on commit 5066055

Please sign in to comment.