Pass UserStore to ContactsPanel instead of AppState

This commit is contained in:
Max Brunsfeld 2022-05-19 14:43:36 -07:00
parent de99dcb0c3
commit 9e47e19f4e
2 changed files with 11 additions and 10 deletions

View file

@ -162,8 +162,9 @@ pub fn build_workspace(
});
let project_panel = ProjectPanel::new(project, cx);
let contact_panel =
cx.add_view(|cx| ContactsPanel::new(app_state.clone(), workspace.weak_handle(), cx));
let contact_panel = cx.add_view(|cx| {
ContactsPanel::new(app_state.user_store.clone(), workspace.weak_handle(), cx)
});
workspace.left_sidebar().update(cx, |sidebar, cx| {
sidebar.add_item("icons/folder-tree-solid-14.svg", project_panel.into(), cx)