mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
remove tap handler on FeedCard
This commit is contained in:
parent
64dbafece1
commit
64ee55d829
2 changed files with 2 additions and 9 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue