Fix broken classname.
This commit is contained in:
parent
6a6391319e
commit
c6ba1f9b11
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "bootstrap-rs"
|
||||
version = "0.2.5"
|
||||
version = "0.2.6"
|
||||
authors = ["Thomas Gideon <cmdln@thecommandline.net>"]
|
||||
edition = "2018"
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue