mirror of
git://jb55.com/damus
synced 2024-09-19 11:43:44 +00:00
don't make highlighted event clickable in details view
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
721471cf0a
commit
36043cf20a
@ -91,13 +91,16 @@ struct EventDetailView: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
ScrollView {
|
ScrollView {
|
||||||
ForEach(events, id: \.id) { ev in
|
ForEach(events, id: \.id) { ev in
|
||||||
let evdet = EventDetailView(event: ev, pool: pool, profiles: profiles)
|
if ev.id == event.id {
|
||||||
.navigationBarTitle("Note")
|
|
||||||
NavigationLink(destination: evdet) {
|
|
||||||
EventView(event: ev, profile: self.profiles[ev.pubkey]?.profile, highlighted: ev.id == event.id)
|
EventView(event: ev, profile: self.profiles[ev.pubkey]?.profile, highlighted: ev.id == event.id)
|
||||||
|
} else {
|
||||||
|
let evdet = EventDetailView(event: ev, pool: pool, profiles: profiles)
|
||||||
|
.navigationBarTitle("Note")
|
||||||
|
NavigationLink(destination: evdet) {
|
||||||
|
EventView(event: ev, profile: self.profiles[ev.pubkey]?.profile, highlighted: ev.id == event.id)
|
||||||
|
}
|
||||||
|
.buttonStyle(PlainButtonStyle())
|
||||||
}
|
}
|
||||||
.buttonStyle(PlainButtonStyle())
|
|
||||||
//EventView(event: ev, profile: self.profiles[ev.pubkey]?.profile, highlighted: ev.id == event.id)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding()
|
.padding()
|
||||||
|
Loading…
Reference in New Issue
Block a user