Commit cf3b4bb2 authored by Chunchi Che's avatar Chunchi Che

make sortCardModal undraggable

parent 20ee2923
Pipeline #21064 passed with stages
in 16 minutes and 51 seconds
...@@ -21,8 +21,7 @@ import { selectSortCardModal } from "../../reducers/duel/modal/sortCardModalSlic ...@@ -21,8 +21,7 @@ import { selectSortCardModal } from "../../reducers/duel/modal/sortCardModalSlic
import { sendSortCardResponse } from "../../api/ocgcore/ocgHelper"; import { sendSortCardResponse } from "../../api/ocgcore/ocgHelper";
import { store } from "../../store"; import { store } from "../../store";
import { resetSortCardModal } from "../../reducers/duel/mod"; import { resetSortCardModal } from "../../reducers/duel/mod";
import DragModal from "./dragModal"; import { Modal, Button, Card } from "antd";
import { Button, Card } from "antd";
import { CardMeta } from "../../api/cards"; import { CardMeta } from "../../api/cards";
import NeosConfig from "../../../neos.config.json"; import NeosConfig from "../../../neos.config.json";
...@@ -61,7 +60,7 @@ const SortCardModal = () => { ...@@ -61,7 +60,7 @@ const SortCardModal = () => {
}, [options]); }, [options]);
return ( return (
<DragModal <Modal
title="请为下列卡牌排序" title="请为下列卡牌排序"
open={isOpen} open={isOpen}
closable={false} closable={false}
...@@ -85,7 +84,7 @@ const SortCardModal = () => { ...@@ -85,7 +84,7 @@ const SortCardModal = () => {
))} ))}
</SortableContext> </SortableContext>
</DndContext> </DndContext>
</DragModal> </Modal>
); );
}; };
......
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