recent_projects.rs

 1use ui::prelude::*;
 2use ui::RecentProjects;
 3
 4use crate::story::Story;
 5
 6#[derive(Element, Default)]
 7pub struct RecentProjectsStory {}
 8
 9impl RecentProjectsStory {
10    fn render<V: 'static>(&mut self, _: &mut V, cx: &mut ViewContext<V>) -> impl IntoElement<V> {
11        Story::container(cx)
12            .child(Story::title_for::<_, RecentProjects>(cx))
13            .child(Story::label(cx, "Default"))
14            .child(RecentProjects::new())
15    }
16}