diff --git a/crates/story/src/chart_story.rs b/crates/story/src/chart_story.rs index 8533df8b..26d64124 100644 --- a/crates/story/src/chart_story.rs +++ b/crates/story/src/chart_story.rs @@ -11,11 +11,11 @@ use gpui_component::{ use crate::fixtures::{CHART_DATA, CHART_DATA_2}; -pub struct PlotStory { +pub struct ChartStory { focus_handle: FocusHandle, } -impl PlotStory { +impl ChartStory { fn new(_: &mut Window, cx: &mut Context) -> Self { Self { focus_handle: cx.focus_handle(), @@ -27,7 +27,7 @@ impl PlotStory { } } -impl super::Story for PlotStory { +impl super::Story for ChartStory { fn title() -> &'static str { "Chart" } @@ -45,7 +45,7 @@ impl super::Story for PlotStory { } } -impl Focusable for PlotStory { +impl Focusable for ChartStory { fn focus_handle(&self, _: &App) -> FocusHandle { self.focus_handle.clone() } @@ -55,7 +55,7 @@ fn chart_container( title: &str, chart: impl IntoElement, center: bool, - cx: &mut Context, + cx: &mut Context, ) -> impl IntoElement { v_flex() .flex_1() @@ -94,7 +94,7 @@ fn chart_container( ) } -impl Render for PlotStory { +impl Render for ChartStory { fn render(&mut self, _: &mut Window, cx: &mut Context) -> impl IntoElement { v_flex() .size_full() diff --git a/crates/story/src/lib.rs b/crates/story/src/lib.rs index 3ada67bb..91fa4a85 100644 --- a/crates/story/src/lib.rs +++ b/crates/story/src/lib.rs @@ -56,7 +56,7 @@ pub use alert_story::AlertStory; pub use badge_story::BadgeStory; pub use button_story::ButtonStory; pub use calendar_story::CalendarStory; -pub use chart_story::PlotStory; +pub use chart_story::ChartStory; pub use checkbox_story::CheckboxStory; pub use clipboard_story::ClipboardStory; pub use color_picker_story::ColorPickerStory; diff --git a/crates/story/src/main.rs b/crates/story/src/main.rs index 17f921a2..ac2e11ba 100644 --- a/crates/story/src/main.rs +++ b/crates/story/src/main.rs @@ -42,6 +42,7 @@ impl Gallery { StoryContainer::panel::(window, cx), StoryContainer::panel::(window, cx), StoryContainer::panel::(window, cx), + StoryContainer::panel::(window, cx), StoryContainer::panel::(window, cx), StoryContainer::panel::(window, cx), StoryContainer::panel::(window, cx), @@ -60,7 +61,6 @@ impl Gallery { StoryContainer::panel::(window, cx), StoryContainer::panel::(window, cx), StoryContainer::panel::(window, cx), - StoryContainer::panel::(window, cx), StoryContainer::panel::(window, cx), StoryContainer::panel::(window, cx), StoryContainer::panel::(window, cx),