Use new children approach for Toolbar
This commit is contained in:
parent
30979caf25
commit
24bab48043
3 changed files with 68 additions and 77 deletions
|
@ -29,10 +29,6 @@ impl<S: 'static + Send + Sync + Clone> AssistantPanel<S> {
|
|||
fn render(&mut self, view: &mut S, cx: &mut ViewContext<S>) -> impl Element<ViewState = S> {
|
||||
let theme = theme(cx);
|
||||
|
||||
struct PanelPayload {
|
||||
pub scroll_state: ScrollState,
|
||||
}
|
||||
|
||||
Panel::new(self.scroll_state.clone())
|
||||
.children(vec![div()
|
||||
.flex()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue