Commit 1bd7cf3d authored by timel's avatar timel

fix: [select action modal] card zone select

parent 017bdebd
......@@ -171,7 +171,9 @@ export const NewSelectActionsModal: FC = () => {
selectedZone={selectedZone}
onChange={setSelectedZone as any}
/>
{grouped.map((options, i) => (
{grouped.map(
(options, i) =>
options[0] === selectedZone && (
<div className="checkcard-container" key={i}>
<CheckCard.Group
onChange={setResponse as any}
......@@ -184,7 +186,11 @@ export const NewSelectActionsModal: FC = () => {
}}
>
{options[1].map((card, j) => (
<Tooltip title={card.effectDesc} placement="bottom" key={j}>
<Tooltip
title={card.effectDesc}
placement="bottom"
key={j}
>
<div>
<CheckCard
cover={
......@@ -216,7 +222,8 @@ export const NewSelectActionsModal: FC = () => {
))}
</CheckCard.Group>
</div>
))}
)
)}
</Space>
</div>
</NeosModal>
......
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