Commit 0b32f9ac authored by chechunchi's avatar chechunchi

fix

parent bf7d3d40
Pipeline #19258 passed with stages
in 4 minutes and 55 seconds
import { ygopro } from "../../api/ocgcore/idl/ocgcore";
import { setOptionModalIsOpen } from "../../reducers/duel/mod";
import { fetchOptionMeta } from "../../reducers/duel/modalSlice";
import { AppDispatch } from "../../store";
import MsgSelectOption = ygopro.StocGameMessage.MsgSelectOption;
export default (selectOption: MsgSelectOption, dispatch: AppDispatch) => {
console.log(selectOption);
const player = selectOption.player;
const options = selectOption.options;
for (let option of options) {
dispatch(fetchOptionMeta(option));
}
dispatch(setOptionModalIsOpen(true));
};
......@@ -21,7 +21,7 @@ const OptionModal = () => {
return (
<Modal
title="请选择表示形式"
title="请选择需要发动的效果"
open={isOpen}
closable={false}
footer={
......
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