feat: add artist tag link

This commit is contained in:
monoid 2023-11-14 17:59:25 +09:00
parent e92caa622a
commit 4fc62c55e2
1 changed files with 5 additions and 1 deletions

View File

@ -177,7 +177,11 @@ function ComicDetailTag(prop: {
<Typography variant="subtitle1">{key}</Typography> <Typography variant="subtitle1">{key}</Typography>
</Grid> </Grid>
<Grid item xs={9}> <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> </Grid>
</React.Fragment> </React.Fragment>
))} ))}