parent
91b2a84001
commit
bc566fe18e
1 changed files with 12 additions and 17 deletions
|
@ -86,23 +86,18 @@ impl RenderOnce for UsageCallout {
|
||||||
(IconName::Warning, Severity::Warning)
|
(IconName::Warning, Severity::Warning)
|
||||||
};
|
};
|
||||||
|
|
||||||
div()
|
Callout::new()
|
||||||
.border_t_1()
|
.icon(icon)
|
||||||
.border_color(cx.theme().colors().border)
|
.severity(severity)
|
||||||
.child(
|
.icon(icon)
|
||||||
Callout::new()
|
.title(title)
|
||||||
.icon(icon)
|
.description(message)
|
||||||
.severity(severity)
|
.actions_slot(
|
||||||
.icon(icon)
|
Button::new("upgrade", button_text)
|
||||||
.title(title)
|
.label_size(LabelSize::Small)
|
||||||
.description(message)
|
.on_click(move |_, _, cx| {
|
||||||
.actions_slot(
|
cx.open_url(&url);
|
||||||
Button::new("upgrade", button_text)
|
}),
|
||||||
.label_size(LabelSize::Small)
|
|
||||||
.on_click(move |_, _, cx| {
|
|
||||||
cx.open_url(&url);
|
|
||||||
}),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
.into_any_element()
|
.into_any_element()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue