Minor impl: add default messages to info_texts

This commit is contained in:
Stephen Seo 2022-03-02 19:22:36 +09:00
parent 2fb5a18636
commit 5390e4f9cf
1 changed files with 1 additions and 0 deletions

View File

@ -310,6 +310,7 @@ impl Component for InfoText {
.expect("state to be set");
html! {
<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>
}
}