Commit d5a5441b authored by timel's avatar timel Committed by Chunchi Che

fix: [select action modal] card zone select

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