diff --git a/crates/ui2/src/components/avatar.rs b/crates/ui2/src/components/avatar.rs index 2c2679c39a32423488c87e1274e2395a17217726..ab79352f86ed13f70650d78d2596519b1f85279a 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 c70c6981fa083f0a0a4711670528c618d313d953..3d92cebec55c8a6ee524299b9fcc5cfb4fdb6b5b 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::