Commit b33ff7f5 authored by chechunchi's avatar chechunchi

fix small

parent 0a6f32ea
Pipeline #19460 passed with stages
in 4 minutes and 30 seconds
......@@ -7,7 +7,7 @@ import {
import { useAppSelector } from "../../hook";
import SingleSlot from "./singleSlot";
const depth = 0.02;
const depth = 0.005;
const Cemeteries = () => {
const meCemetery = useAppSelector(selectMeCemetery).inner;
......
......@@ -4,7 +4,7 @@ import { useAppSelector } from "../../hook";
import { selectMeDeck, selectOpDeck } from "../../reducers/duel/deckSlice";
import SingleSlot from "./singleSlot";
const depth = 0.02;
const depth = 0.005;
const Deck = () => (
<>
......
......@@ -10,7 +10,7 @@ import {
} from "../../reducers/duel/mod";
const shape = CONFIG.SingleSlotShape;
const depth = 0.02;
const depth = 0.005;
const SingleSlot = (props: {
state: CardState[];
......@@ -25,13 +25,17 @@ const SingleSlot = (props: {
if (props.state.length != 0) {
dispatch(
setCardListModalInfo(
props.state.map((item) => {
return {
name: item.occupant?.text.name,
desc: item.occupant?.text.desc,
imgUrl: `https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/${item.occupant?.id}.jpg`,
};
})
props.state
.filter(
(item) => item.occupant !== undefined && item.occupant.id !== 0
)
.map((item) => {
return {
name: item.occupant?.text.name,
desc: item.occupant?.text.desc,
imgUrl: `https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/${item.occupant?.id}.jpg`,
};
})
)
);
dispatch(setCardListModalIsOpen(true));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment