diff --git a/crates/ui2/src/components/avatar.rs b/crates/ui2/src/components/avatar.rs index 2c2679c39a..ab79352f86 100644 --- a/crates/ui2/src/components/avatar.rs +++ b/crates/ui2/src/components/avatar.rs @@ -54,7 +54,7 @@ mod stories { impl Render for AvatarStory { type Element = Div; - fn render(&mut self, cx: &mut WindowContext) -> Self::Element { + fn render(&mut self, cx: &mut ViewContext) -> Self::Element { Story::container(cx) .child(Story::title_for::(cx)) .child(Story::label(cx, "Default")) diff --git a/crates/ui2/src/components/button.rs b/crates/ui2/src/components/button.rs index c70c6981fa..3d92cebec5 100644 --- a/crates/ui2/src/components/button.rs +++ b/crates/ui2/src/components/button.rs @@ -251,7 +251,7 @@ mod stories { let states = InteractionState::iter(); Story::container(cx) - .child(Story::title_for::<_, Button>(cx)) + .child(Story::title_for::