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:
Marshall Bowers
2025-05-05 01:18:48 +00:00
committed by GitHub
parent a2fa10f35f
commit 3e2abbf53b
3 changed files with 23 additions and 22 deletions
@@ -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);
}),