1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

made clickable album titles

This commit is contained in:
Fedor Katurov 2020-10-31 15:22:38 +07:00
parent 671b2bb1b8
commit 118dad4e2b
3 changed files with 13 additions and 3 deletions

View file

@ -20,6 +20,7 @@ import { NodeDeletedBadge } from '~/components/node/NodeDeletedBadge';
import { NodeCommentForm } from '~/components/node/NodeCommentForm';
import { Sticky } from '~/components/containers/Sticky';
import { Footer } from '~/components/main/Footer';
import { Link } from 'react-router-dom';
import * as styles from './styles.scss';
import * as NODE_ACTIONS from '~/redux/node/actions';
@ -216,7 +217,11 @@ const NodeLayoutUnconnected: FC<IProps> = memo(
.filter(album => related.albums[album].length > 0)
.map(album => (
<NodeRelated
title={album}
title={
<Link to={URLS.NODE_TAG_URL(node.id, encodeURIComponent(album))}>
{album}
</Link>
}
items={related.albums[album]}
key={album}
/>