Fix up storybooks in theme2

This commit is contained in:
Piotr Osiewicz 2024-01-03 12:23:05 +01:00
parent c636731fd9
commit 7747c5dbd9
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ use crate::{default_color_scales, ColorScaleStep};
pub struct ColorsStory; pub struct ColorsStory;
impl Render for 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(); let color_scales = default_color_scales();
Story::container().child(Story::title("Colors")).child( Story::container().child(Story::title("Colors")).child(

View file

@ -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 story::Story;
use crate::{ActiveTheme, PlayerColors}; use crate::{ActiveTheme, PlayerColors};
@ -6,7 +6,7 @@ use crate::{ActiveTheme, PlayerColors};
pub struct PlayerStory; pub struct PlayerStory;
impl Render for 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( Story::container().child(
div() div()
.flex() .flex()