🎨 Remove unnecessary JoinProjectParams struct

This commit is contained in:
Max Brunsfeld
2022-04-20 17:27:33 +02:00
committed by Antonio Scandurra
parent 184a454f6f
commit eee1cec3d4
2 changed files with 9 additions and 13 deletions
+4 -5
View File
@@ -1,5 +1,3 @@
use std::sync::Arc;
use client::{Contact, UserStore};
use gpui::{
elements::*,
@@ -8,8 +6,9 @@ use gpui::{
Element, ElementBox, Entity, LayoutContext, ModelHandle, RenderContext, Subscription, View,
ViewContext,
};
use workspace::{AppState, JoinProject, JoinProjectParams};
use settings::Settings;
use std::sync::Arc;
use workspace::{AppState, JoinProject};
pub struct ContactsPanel {
contacts: ListState,
@@ -207,10 +206,10 @@ impl ContactsPanel {
})
.on_click(move |cx| {
if !is_host && !is_guest {
cx.dispatch_global_action(JoinProject(JoinProjectParams {
cx.dispatch_global_action(JoinProject {
project_id,
app_state: app_state.clone(),
}));
});
}
})
.flex(1., true)