Renames in Frontend

This commit is contained in:
Qstick
2020-05-15 23:32:52 -04:00
committed by ta264
parent ee4e44b81a
commit ee43ccf620
387 changed files with 4036 additions and 4364 deletions
+20
View File
@@ -0,0 +1,20 @@
import PropTypes from 'prop-types';
import React from 'react';
import Link from 'Components/Link/Link';
function AuthorNameLink({ titleSlug, authorName }) {
const link = `/author/${titleSlug}`;
return (
<Link to={link}>
{authorName}
</Link>
);
}
AuthorNameLink.propTypes = {
titleSlug: PropTypes.string.isRequired,
authorName: PropTypes.string.isRequired
};
export default AuthorNameLink;