ui2: Clean up take
s
This commit is contained in:
parent
7b4a895ab9
commit
eb19071d84
4 changed files with 10 additions and 10 deletions
|
@ -38,7 +38,7 @@ impl<S: 'static> Modal<S> {
|
|||
self
|
||||
}
|
||||
|
||||
fn render(mut self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Component<S> {
|
||||
fn render(self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Component<S> {
|
||||
let theme = theme(cx);
|
||||
|
||||
v_stack()
|
||||
|
@ -68,8 +68,8 @@ impl<S: 'static> Modal<S> {
|
|||
.border_color(theme.border)
|
||||
.p_1()
|
||||
.justify_end()
|
||||
.children(self.secondary_action.take())
|
||||
.children(self.primary_action.take()),
|
||||
.children(self.secondary_action)
|
||||
.children(self.primary_action),
|
||||
)
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue