ui: Make Callout constructors more flexible (#29895)
This PR updates the `Callout` constructors to be more flexible by accepting `impl Into<SharedString>`s. Release Notes: - N/A
This commit is contained in:
@@ -93,10 +93,10 @@ impl RenderOnce for UsageCallout {
|
||||
};
|
||||
|
||||
Callout::multi_line(
|
||||
title.into(),
|
||||
message.into(),
|
||||
title,
|
||||
message,
|
||||
icon,
|
||||
button_text.into(),
|
||||
button_text,
|
||||
Box::new(move |_, _, cx| {
|
||||
cx.open_url(url);
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user