Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix up storybooks in theme2

Piotr Osiewicz7747c5dbd9f0
diff --git a/crates/theme2/src/styles/stories/color.rs b/crates/theme2/src/styles/stories/color.rs
index f406f64cec8..90e84bcf0f2 100644
--- a/crates/theme2/src/styles/stories/color.rs
+++ b/crates/theme2/src/styles/stories/color.rs
@@ -7,7 +7,7 @@ use crate::{default_color_scales, ColorScaleStep};
pub struct ColorsStory;
impl Render for ColorsStory {
- fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
+ fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
let color_scales = default_color_scales();
Story::container().child(Story::title("Colors")).child(
diff --git a/crates/theme2/src/styles/stories/players.rs b/crates/theme2/src/styles/stories/players.rs
index d7ab054b2d3..21af2586417 100644
--- a/crates/theme2/src/styles/stories/players.rs
+++ b/crates/theme2/src/styles/stories/players.rs
@@ -1,4 +1,4 @@
-use gpui::{div, img, px, Element, ParentElement, Render, Styled, ViewContext};
+use gpui::{div, img, px, IntoElement, ParentElement, Render, Styled, ViewContext};
use story::Story;
use crate::{ActiveTheme, PlayerColors};
@@ -6,7 +6,7 @@ use crate::{ActiveTheme, PlayerColors};
pub struct PlayerStory;
impl Render for PlayerStory {
- fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
+ fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
Story::container().child(
div()
.flex()