single game fix

This commit is contained in:
Lett Osprey 2026-04-13 12:17:50 +02:00
parent 09bf741997
commit f3020b7cb0
6 changed files with 195 additions and 128 deletions

View file

@ -27,6 +27,7 @@ pub fn click_cell(
pub fn click_cell_pair(
tag: Option(String),
pair: Option(#(String, String)),
display_value: Bool,
on_click: fn(Option(#(String, String))) -> msg,
) -> Element(msg) {
let value = case pair {
@ -47,7 +48,10 @@ pub fn click_cell_pair(
},
),
]),
html.text(value),
case display_value {
True -> html.text(value)
False -> element.none()
},
]),
])
}