remove tap handler on FeedCard

This commit is contained in:
Satindar Dhillon 2022-09-12 22:16:31 -07:00
parent 64dbafece1
commit 64ee55d829
2 changed files with 2 additions and 9 deletions

View file

@ -26,9 +26,7 @@ struct FeedCardNavigationLink: View {
.onAppear {
Task { await viewModel.itemAppeared(item: item, dataService: dataService, audioSession: audioSession) }
}
FeedCard(item: item) {
// TODO: remove closure
}
FeedCard(item: item)
}
}
}

View file

@ -3,12 +3,10 @@ import SwiftUI
import Utils
public struct FeedCard: View {
let tapHandler: () -> Void
@ObservedObject var item: LinkedItem
public init(item: LinkedItem, tapHandler: @escaping () -> Void) {
public init(item: LinkedItem) {
self.item = item
self.tapHandler = tapHandler
}
public var body: some View {
@ -77,9 +75,6 @@ public struct FeedCard: View {
}
}
.padding(.top, 8)
.onTapGesture {
tapHandler()
}
}
}
.padding(.top, 10)