From 8a4b39465a0e1340ba5b39228ac7655a77054baf Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Sat, 4 Jun 2022 17:54:55 +0300 Subject: [PATCH] chore: add profile url to author card --- .../Components/AuthorCard/AuthorCard.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/features/Posts/pages/PostDetailsPage/Components/AuthorCard/AuthorCard.tsx b/src/features/Posts/pages/PostDetailsPage/Components/AuthorCard/AuthorCard.tsx index cc5ec68..aa91839 100644 --- a/src/features/Posts/pages/PostDetailsPage/Components/AuthorCard/AuthorCard.tsx +++ b/src/features/Posts/pages/PostDetailsPage/Components/AuthorCard/AuthorCard.tsx @@ -1,4 +1,5 @@ import dayjs from "dayjs"; +import { Link } from "react-router-dom"; import Button from "src/Components/Button/Button"; import { Author } from "src/features/Posts/types"; import Avatar from "src/features/Profiles/Components/Avatar/Avatar"; @@ -16,13 +17,19 @@ export default function AuthorCard({ author }: Props) { return (
- + + +

{trimText(author.name, 333)}

Joined on {dayjs(author.join_date).format('MMMM DD, YYYY')}

-