Minor impl: add default messages to info_texts
This commit is contained in:
parent
2fb5a18636
commit
5390e4f9cf
1 changed files with 1 additions and 0 deletions
|
@ -310,6 +310,7 @@ impl Component for InfoText {
|
||||||
.expect("state to be set");
|
.expect("state to be set");
|
||||||
html! {
|
html! {
|
||||||
<div ref={shared.info_text_ref[ctx.props().id].clone()} class={format!("info_text{}", ctx.props().id)}>
|
<div ref={shared.info_text_ref[ctx.props().id].clone()} class={format!("info_text{}", ctx.props().id)}>
|
||||||
|
{ if ctx.props().id == 1 { "It is CyanPlayer's turn" } else { "Hello" } }
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue