feat: add artist tag link

This commit is contained in:
monoid 2023-11-14 17:59:25 +09:00
parent e92caa622a
commit 4fc62c55e2

View File

@ -177,7 +177,11 @@ function ComicDetailTag(prop: {
<Typography variant="subtitle1">{key}</Typography>
</Grid>
<Grid item xs={9}>
<Box>{tagTable[key].length !== 0 ? tagTable[key].join(", ") : "N/A"}</Box>
<Box>{tagTable[key].length !== 0 ? tagTable[key].map((elem, i)=>{
return <><Link to={`/search?allow_tag=${key}:${encodeURIComponent(elem)}`} component={RouterLink}>
{elem}
</Link>{(i < tagTable[key].length - 1) ? ',' : ''}</>
}) : "N/A"}</Box>
</Grid>
</React.Fragment>
))}