From 58dd3e0d1ed27d3e6825bf71898f92d93eb512c2 Mon Sep 17 00:00:00 2001 From: camilovegag Date: Tue, 21 May 2024 23:21:41 -0500 Subject: [PATCH 1/2] Change date to time --- .../columns/comments-columns/CommentsColumns.styled.tsx | 6 ++++-- .../components/columns/comments-columns/CommentsColumns.tsx | 4 ++-- 2 files changed, 6 insertions(+), 4 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 ); From a46fa0ce49b5ffc39d82af047e7da66fce8c5be2 Mon Sep 17 00:00:00 2001 From: camilovegag Date: Tue, 21 May 2024 23:22:13 -0500 Subject: [PATCH 2/2] Remove weekday, day and month --- .../src/components/tables/comment-table/CommentsTable.tsx | 3 --- 1 file changed, 3 deletions(-) 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', };