From c6e20aed9be47b50be2e2d157608ac369b53aa08 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 17 Oct 2023 08:32:33 +0200 Subject: [PATCH] Checkpoint --- crates/ui2/src/components/collab_panel.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/crates/ui2/src/components/collab_panel.rs b/crates/ui2/src/components/collab_panel.rs index 86d5d12aaa..0e268664a9 100644 --- a/crates/ui2/src/components/collab_panel.rs +++ b/crates/ui2/src/components/collab_panel.rs @@ -1,6 +1,6 @@ use std::marker::PhantomData; -use gpui3::{img, svg, ArcCow}; +use gpui3::{img, svg, SharedString}; use crate::prelude::*; use crate::theme::{theme, Theme}; @@ -100,7 +100,7 @@ impl CollabPanel { fn list_section_header( &self, - label: impl Into>, + label: impl Into, expanded: bool, theme: &Theme, ) -> impl Element { @@ -128,8 +128,8 @@ impl CollabPanel { fn list_item( &self, - avatar_uri: impl Into>, - label: impl Into>, + avatar_uri: impl Into, + label: impl Into, theme: &Theme, ) -> impl Element { div() @@ -180,7 +180,11 @@ mod stories { } } - fn render(&mut self, _view: &mut S, cx: &mut ViewContext) -> impl Element { + fn render( + &mut self, + _view: &mut S, + cx: &mut ViewContext, + ) -> impl Element { Story::container(cx) .child(Story::title_for::<_, CollabPanel>(cx)) .child(Story::label(cx, "Default"))