Skip to content

Commit

Permalink
545 remove date from comments page (#547)
Browse files Browse the repository at this point in the history
* Change date to time

* Remove weekday, day and month
  • Loading branch information
camilovegag authored May 22, 2024
1 parent 3d2a8b9 commit 7f23f92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ 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) {
display: flex;
}
`;

export const Likes = styled(Body)``;
export const Likes = styled(Body)`
font-weight: bold;
`;
Original file line number Diff line number Diff line change
@@ -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 (
<Card $columns={4}>
<Comment>Comment</Comment>
<Author>Author</Author>
<Date>Date</Date>
<Time>Time</Time>
<Likes>Likes</Likes>
</Card>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
Expand Down

0 comments on commit 7f23f92

Please sign in to comment.