refactor: Break EventView into 3 separate views

SelectedEventView
EmbeddedEventView
EventView
This commit is contained in:
William Casarin
2023-01-23 12:13:58 -08:00
parent 7e1daf7816
commit 8df5bf04ae
13 changed files with 298 additions and 138 deletions

View File

@@ -72,7 +72,7 @@ struct EventDetailView: View {
toggle_thread_view()
}
case .event(let ev, let highlight):
EventView(event: ev, highlight: highlight, has_action_bar: true, damus: damus, show_friend_icon: true)
EventView(event: ev, has_action_bar: true, damus: damus)
.onTapGesture {
if thread.initial_event.id == ev.id {
toggle_thread_view()