Fix broken classname.
This commit is contained in:
parent
6a6391319e
commit
c6ba1f9b11
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ impl Component for Alert {
|
|||
}
|
||||
|
||||
fn view(&self) -> Html {
|
||||
let color_class = self.props.color.with_prefix("alert-");
|
||||
let color_class = self.props.color.with_prefix("alert");
|
||||
let class = calculate_classes(format!("alert {}", color_class), (&self.props).into());
|
||||
html! {
|
||||
<div class=class>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue