This commit is contained in:
Adam 2024-08-18 18:56:03 -04:00
parent a2a25b892f
commit 49351a31b1
2 changed files with 2 additions and 2 deletions

View file

@ -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>>();

View file

@ -67,7 +67,7 @@ pub fn Game() -> impl IntoView {
list.remove(
list.iter()
.position(|card| *card == card_clicked())
.expect("AASSSSSSSSSSSSSS"),
.unwrap(),
);
});