Commit 86a8fa0f authored by Chunchi Che's avatar Chunchi Che

fix small

parent 65d8dde5
Pipeline #20575 passed with stages
in 6 minutes and 22 seconds
...@@ -26,8 +26,8 @@ const CardModal = () => { ...@@ -26,8 +26,8 @@ const CardModal = () => {
const meta = useAppSelector(selectCardModalMeta); const meta = useAppSelector(selectCardModalMeta);
const name = meta?.text.name; const name = meta?.text.name;
const desc = meta?.text.desc; const desc = meta?.text.desc;
const atk = meta?.data.atk || 0; const atk = meta?.data.atk;
const def = meta?.data.def || 0; const def = meta?.data.def;
const imgUrl = meta?.id const imgUrl = meta?.id
? `${NeosConfig.cardImgUrl}/${meta.id}.jpg` ? `${NeosConfig.cardImgUrl}/${meta.id}.jpg`
: undefined; : undefined;
...@@ -48,17 +48,25 @@ const CardModal = () => { ...@@ -48,17 +48,25 @@ const CardModal = () => {
<p>{desc}</p> <p>{desc}</p>
<p> <p>
<Row gutter={8}> <Row gutter={8}>
<Col> {atk ? (
<Icon component={BattleSvg} /> <Col>
<a>{atk}</a> <Icon component={BattleSvg} />
</Col> <a>{atk}</a>
</Col>
) : (
<></>
)}
<Col> <Col>
<div>/</div> <div>/</div>
</Col> </Col>
<Col> {def ? (
<Icon component={DefenceSvg} /> <Col>
<a>{def}</a> <Icon component={DefenceSvg} />
</Col> <a>{def}</a>
</Col>
) : (
<></>
)}
</Row> </Row>
</p> </p>
</Card> </Card>
......
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