Checkpoint: Back to a compiling state

This commit is contained in:
Marshall Bowers 2023-10-12 12:22:23 -04:00
parent 262f5886a4
commit 6dbe983461
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ impl<S: 'static + Send + Sync + Clone> KitchenSinkStory<S> {
fn render(&mut self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Element<ViewState = S> {
let element_stories = ElementStory::iter().map(|selector| selector.story());
let component_stories = ComponentStory::iter().map(|selector| selector.story(cx));
let component_stories = ComponentStory::iter().map(|selector| selector.story(cx)).collect::<Vec<_>>();
Story::container(cx)
.overflow_y_scroll(ScrollState::default())

View file

@ -90,7 +90,7 @@ impl ComponentStory {
Self::Toast => ui::ToastStory::new().into_any(),
Self::Toolbar => ui::ToolbarStory::new().into_any(),
Self::TrafficLights => ui::TrafficLightsStory::new().into_any(),
Self::Workspace => ui::workspace_story(cx).into_any().into_any(),
Self::Workspace => todo!(),
}
}
}

View file

@ -108,7 +108,7 @@ impl StoryWrapper {
.flex()
.flex_col()
.size_full()
.child_any(self.selector.story())
.child_any(self.selector.story(cx))
})
}
}