From 7f23f92f767c4051b9b72448d53ff647450c6d71 Mon Sep 17 00:00:00 2001 From: Camilo Vega <59750365+camilovegag@users.noreply.github.com> Date: Wed, 22 May 2024 03:04:20 -0500 Subject: [PATCH] 545 remove date from comments page (#547) * Change date to time * Remove weekday, day and month --- .../columns/comments-columns/CommentsColumns.styled.tsx | 6 ++++-- .../components/columns/comments-columns/CommentsColumns.tsx | 4 ++-- .../src/components/tables/comment-table/CommentsTable.tsx | 3 --- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/berlin/src/components/columns/comments-columns/CommentsColumns.styled.tsx b/packages/berlin/src/components/columns/comments-columns/CommentsColumns.styled.tsx index 65f13fab..fe08b092 100644 --- a/packages/berlin/src/components/columns/comments-columns/CommentsColumns.styled.tsx +++ b/packages/berlin/src/components/columns/comments-columns/CommentsColumns.styled.tsx @@ -19,7 +19,7 @@ export const Comment = styled(Body)` export const Author = styled(Body)` font-weight: bold; `; -export const Date = styled(Body)` +export const Time = styled(Body)` font-weight: bold; display: none; @media (min-width: 600px) { @@ -27,4 +27,6 @@ export const Date = styled(Body)` } `; -export const Likes = styled(Body)``; +export const Likes = styled(Body)` + font-weight: bold; +`; diff --git a/packages/berlin/src/components/columns/comments-columns/CommentsColumns.tsx b/packages/berlin/src/components/columns/comments-columns/CommentsColumns.tsx index 27a451c4..ee322e59 100644 --- a/packages/berlin/src/components/columns/comments-columns/CommentsColumns.tsx +++ b/packages/berlin/src/components/columns/comments-columns/CommentsColumns.tsx @@ -1,11 +1,11 @@ -import { Author, Card, Comment, Date, Likes } from './CommentsColumns.styled'; +import { Author, Card, Comment, Time, Likes } from './CommentsColumns.styled'; function CycleColumns() { return ( Comment Author - Date + Likes ); diff --git a/packages/berlin/src/components/tables/comment-table/CommentsTable.tsx b/packages/berlin/src/components/tables/comment-table/CommentsTable.tsx index 1b1bbef4..34edcac3 100644 --- a/packages/berlin/src/components/tables/comment-table/CommentsTable.tsx +++ b/packages/berlin/src/components/tables/comment-table/CommentsTable.tsx @@ -34,9 +34,6 @@ function CommentsTable({ comment }: CommentsTableProps) { const [isCommentLiked, setIsCommentLiked] = useState(false); const options: Intl.DateTimeFormatOptions = { - weekday: 'long', - day: 'numeric', - month: 'long', hour: 'numeric', minute: 'numeric', };