Start on PeoplePanel::render

Co-Authored-By: Max Brunsfeld <max@zed.dev>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-09-20 20:04:48 +02:00
co-authored by Max Brunsfeld Nathan Sobo
parent 67946b7224
commit 23652f2ba6
3 changed files with 105 additions and 10 deletions
+4 -2
View File
@@ -381,8 +381,10 @@ impl Workspace {
);
right_sidebar.add_item(
"icons/user-16.svg",
cx.add_view(|cx| PeoplePanel::new(app_state.user_store.clone(), cx))
.into(),
cx.add_view(|cx| {
PeoplePanel::new(app_state.user_store.clone(), app_state.settings.clone(), cx)
})
.into(),
);
let mut current_user = app_state.user_store.read(cx).watch_current_user().clone();