Link to author from book details

Co-authored-by: plmcgrn <889547+plmcgrn@users.noreply.github.com>

Closes #3356
This commit is contained in:
Bogdan
2024-03-16 00:46:31 +02:00
parent 93ee466780
commit b8c295727a
7 changed files with 24 additions and 6 deletions
+2 -2
View File
@@ -2,11 +2,11 @@ import PropTypes from 'prop-types';
import React from 'react';
import Link from 'Components/Link/Link';
function AuthorNameLink({ titleSlug, authorName }) {
function AuthorNameLink({ titleSlug, authorName, ...otherProps }) {
const link = `/author/${titleSlug}`;
return (
<Link to={link}>
<Link to={link} {...otherProps}>
{authorName}
</Link>
);