feat: add artist tag link
This commit is contained in:
parent
e92caa622a
commit
4fc62c55e2
@ -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>
|
||||
))}
|
||||
|
Loading…
Reference in New Issue
Block a user