Commit 33f51925 authored by chechunchi's avatar chechunchi

update ui

parent fd0f9b60
Pipeline #19564 passed with stages
in 5 minutes and 27 seconds
...@@ -13,6 +13,7 @@ import { ...@@ -13,6 +13,7 @@ import {
setCardModalText, setCardModalText,
} from "../../reducers/duel/mod"; } from "../../reducers/duel/mod";
import { ActionCreatorWithPayload } from "@reduxjs/toolkit"; import { ActionCreatorWithPayload } from "@reduxjs/toolkit";
import { interactTypeToString } from "./util";
const shape = CONFIG.CardSlotShape(); const shape = CONFIG.CardSlotShape();
...@@ -59,7 +60,16 @@ const FixedSlot = (props: { ...@@ -59,7 +60,16 @@ const FixedSlot = (props: {
`https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/${props.state.occupant.id}.jpg` `https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/${props.state.occupant.id}.jpg`
) )
); );
dispatch(setCardModalInteractivies([])); // TODO dispatch(
setCardModalInteractivies(
props.state.idleInteractivities.map((interactivity) => {
return {
desc: interactTypeToString(interactivity.interactType),
response: interactivity.response,
};
})
)
);
dispatch(setCardModalIsOpen(true)); dispatch(setCardModalIsOpen(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