Fix Component derive macro
This commit is contained in:
parent
f4cff69729
commit
c9c9db903d
2 changed files with 44 additions and 44 deletions
|
@ -69,7 +69,7 @@ impl<S: 'static + Send + Sync> AssistantPanel<S> {
|
|||
.overflow_y_scroll()
|
||||
.child(Label::new("Is this thing on?")),
|
||||
)
|
||||
.renderinto_any()])
|
||||
.render()])
|
||||
.side(self.current_side)
|
||||
.width(AbsoluteLength::Rems(rems(32.)))
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ mod stories {
|
|||
Self {}
|
||||
}
|
||||
|
||||
fn render<V: 'static>(self, _view: &mut V, cx: &mut ViewContext<V>) -> impl Component<V> {
|
||||
fn render<V: 'static + Send + Sync>(self, _view: &mut V, cx: &mut ViewContext<V>) -> impl Component<V> {
|
||||
Story::container(cx)
|
||||
.child(Story::title_for::<_, AssistantPanel<V>>(cx))
|
||||
.child(Story::label(cx, "Default"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue