details
This commit is contained in:
parent
a2a25b892f
commit
49351a31b1
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
|||
use leptos::*;
|
||||
use lib::WhiteCardMeta;
|
||||
use std::collections::BTreeSet;
|
||||
|
||||
#[component]
|
||||
pub fn BlackCard(card_data: ReadSignal<(String, u8)>) -> impl IntoView {
|
||||
|
@ -11,6 +10,7 @@ pub fn BlackCard(card_data: ReadSignal<(String, u8)>) -> impl IntoView {
|
|||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
#[component]
|
||||
pub fn WhiteCard(card_data: WhiteCardMeta) -> impl IntoView {
|
||||
let set_card_clicked = expect_context::<WriteSignal<String>>();
|
||||
|
|
|
@ -67,7 +67,7 @@ pub fn Game() -> impl IntoView {
|
|||
list.remove(
|
||||
list.iter()
|
||||
.position(|card| *card == card_clicked())
|
||||
.expect("AASSSSSSSSSSSSSS"),
|
||||
.unwrap(),
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue