Pass UserStore to ContactsPanel instead of AppState
This commit is contained in:
parent
de99dcb0c3
commit
9e47e19f4e
2 changed files with 11 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue