diff --git a/components/BeerById/CommentCard.tsx b/components/BeerById/CommentCard.tsx index 7d5712b..bd2cd4c 100644 --- a/components/BeerById/CommentCard.tsx +++ b/components/BeerById/CommentCard.tsx @@ -1,5 +1,6 @@ import { BeerCommentQueryResultT } from '@/services/BeerComment/schema/BeerCommentQueryResult'; -import { formatDistanceStrict } from 'date-fns'; +import { format, formatDistanceStrict } from 'date-fns'; +import Link from 'next/link'; import { useEffect, useState } from 'react'; import { Rating } from 'react-daisyui'; @@ -13,23 +14,38 @@ const CommentCard: React.FC<{ }, [comment.createdAt]); return ( -
-
+
+
-

{comment.postedBy.username}

-

posted {timeDistance} ago

+

+ + {comment.postedBy.username} + +

+

+ posted{' '} + {' '} + ago +

+
+
+ + {Array.from({ length: 5 }).map((val, index) => ( + + ))} +
- - {Array.from({ length: 5 }).map((val, index) => ( - - ))} -

{comment.content}

diff --git a/components/Login/LoginForm.tsx b/components/Login/LoginForm.tsx index 722bc35..ca9ec9d 100644 --- a/components/Login/LoginForm.tsx +++ b/components/Login/LoginForm.tsx @@ -74,7 +74,7 @@ const LoginForm = () => { {responseError && }
-
diff --git a/components/ui/Navbar.tsx b/components/ui/Navbar.tsx index a329b6b..0e69453 100644 --- a/components/ui/Navbar.tsx +++ b/components/ui/Navbar.tsx @@ -44,7 +44,7 @@ const Navbar = () => { return (
-