Remove unneeded constructors for stories
This commit is contained in:
parent
65045b9c52
commit
61694bba6a
33 changed files with 62 additions and 227 deletions
|
@ -81,13 +81,9 @@ mod stories {
|
|||
use super::*;
|
||||
|
||||
#[derive(Component)]
|
||||
pub struct AssistantPanelStory {}
|
||||
pub struct AssistantPanelStory;
|
||||
|
||||
impl AssistantPanelStory {
|
||||
pub fn new() -> Self {
|
||||
Self {}
|
||||
}
|
||||
|
||||
fn render<V: 'static>(self, _view: &mut V, cx: &mut ViewContext<V>) -> impl Component<V> {
|
||||
Story::container(cx)
|
||||
.child(Story::title_for::<_, AssistantPanel>(cx))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue