mirror of
git://jb55.com/damus
synced 2024-09-18 19:23:49 +00:00
router: use tap gestures instead of nav links
I was hoping this would fix something but it did not
This commit is contained in:
parent
c13f29e98c
commit
e30d38e69f
@ -38,11 +38,10 @@ struct EventProfile: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
HStack(alignment: .center) {
|
HStack(alignment: .center) {
|
||||||
VStack {
|
ProfilePicView(pubkey: pubkey, size: pfp_size, highlight: .none, profiles: damus_state.profiles, disable_animation: disable_animation)
|
||||||
NavigationLink(value: Route.ProfileByKey(pubkey: pubkey)) {
|
.onTapGesture {
|
||||||
ProfilePicView(pubkey: pubkey, size: pfp_size, highlight: .none, profiles: damus_state.profiles, disable_animation: disable_animation)
|
damus_state.nav.push(route: .ProfileByKey(pubkey: pubkey))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
EventProfileName(pubkey: pubkey, profile: profile, damus: damus_state, size: size)
|
EventProfileName(pubkey: pubkey, profile: profile, damus: damus_state, size: size)
|
||||||
|
@ -28,9 +28,10 @@ struct MaybeAnonPfpView: View {
|
|||||||
.font(.largeTitle)
|
.font(.largeTitle)
|
||||||
.frame(width: size, height: size)
|
.frame(width: size, height: size)
|
||||||
} else {
|
} else {
|
||||||
NavigationLink(value: Route.ProfileByKey(pubkey: pubkey)) {
|
ProfilePicView(pubkey: pubkey, size: size, highlight: .none, profiles: state.profiles, disable_animation: state.settings.disable_animation)
|
||||||
ProfilePicView(pubkey: pubkey, size: size, highlight: .none, profiles: state.profiles, disable_animation: state.settings.disable_animation)
|
.onTapGesture {
|
||||||
}
|
state.nav.push(route: Route.ProfileByKey(pubkey: pubkey))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user