Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace react-timeago with dayjs functionality. #10943

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fniessink
Copy link
Member

@fniessink fniessink commented Mar 3, 2025

No description provided.

@fniessink fniessink force-pushed the migrate-react-time-ago branch from c39eaf3 to f70d0a6 Compare March 3, 2025 19:26
@fniessink fniessink force-pushed the migrate-react-time-ago branch from f70d0a6 to 7297bdf Compare March 3, 2025 20:20
@fniessink fniessink requested a review from wkoot March 3, 2025 21:43
@@ -59,7 +62,7 @@ function cardDetails(issueStatus, settings) {
details.push(
<ListItem key="created">
<Typography noWrap variant="inherit">
Created <TimeAgo date={issueStatus.created} />
Created {dayjs(issueStatus.created).fromNow()}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we create the fromNow string once, outside all the if statements, e.g. on line 55?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants