Initial actionbar model refactor
This commit is contained in:
@@ -153,7 +153,7 @@ struct TextEvent: View {
|
||||
}
|
||||
|
||||
var ActionBar: some View {
|
||||
return EventActionBar(damus_state: damus, event: event)
|
||||
return EventActionBar(damus_state: damus, event: event, bar: get_actionbar(state: damus, evid: event.id))
|
||||
.padding([.top], 4)
|
||||
}
|
||||
|
||||
@@ -229,3 +229,7 @@ struct TextEvent_Previews: PreviewProvider {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func get_actionbar(state: DamusState, evid: String) -> ActionBarModel {
|
||||
return state.events.get_cache_data(evid).bar_model
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user