Commit 220041bd authored by Chunchi Che's avatar Chunchi Che

update cardListModal.tsx

parent fff94394
Pipeline #20605 passed with stages
in 6 minutes and 39 seconds
...@@ -9,7 +9,7 @@ import { ...@@ -9,7 +9,7 @@ import {
clearAllIdleInteractivities, clearAllIdleInteractivities,
setCardListModalIsOpen, setCardListModalIsOpen,
} from "../../reducers/duel/mod"; } from "../../reducers/duel/mod";
import { Modal, List, Button } from "antd"; import { Drawer, List, Button } from "antd";
import { sendSelectIdleCmdResponse } from "../../api/ocgcore/ocgHelper"; import { sendSelectIdleCmdResponse } from "../../api/ocgcore/ocgHelper";
const CARD_WIDTH = 100; const CARD_WIDTH = 100;
...@@ -24,7 +24,7 @@ const CardListModal = () => { ...@@ -24,7 +24,7 @@ const CardListModal = () => {
}; };
return ( return (
<Modal open={isOpen} onOk={handleOkOrCancel} onCancel={handleOkOrCancel}> <Drawer open={isOpen} onClose={handleOkOrCancel}>
<List <List
itemLayout="horizontal" itemLayout="horizontal"
dataSource={list} dataSource={list}
...@@ -55,7 +55,7 @@ const CardListModal = () => { ...@@ -55,7 +55,7 @@ const CardListModal = () => {
</List.Item> </List.Item>
)} )}
></List> ></List>
</Modal> </Drawer>
); );
}; };
......
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