Return impl IntoElement from Render::render trait
This commit is contained in:
@@ -17,7 +17,7 @@ impl DeployFeedbackButton {
|
||||
}
|
||||
|
||||
impl Render for DeployFeedbackButton {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||
let is_open = self
|
||||
.workspace
|
||||
.upgrade()
|
||||
|
||||
@@ -396,7 +396,7 @@ impl FeedbackModal {
|
||||
}
|
||||
|
||||
impl Render for FeedbackModal {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||
self.update_submission_state(cx);
|
||||
|
||||
let submit_button_text = if self.awaiting_submission() {
|
||||
|
||||
Reference in New Issue
Block a user