feat: implement ActivitiesCard component to display recent activities with enhanced status and time display

Support the new Status and Performed By
This commit is contained in:
Mo Tarbin
2025-05-29 01:01:07 -04:00
parent 5c000f50aa
commit 1f2d38730d
9 changed files with 492 additions and 33 deletions

View File

@@ -107,7 +107,7 @@ const UserPoints = () => {
})
}
history.forEach(chore => {
const dayName = new Date(chore.completedAt).toLocaleString('en-US', {
const dayName = new Date(chore.performedAt).toLocaleString('en-US', {
weekday: 'short',
})
@@ -136,7 +136,7 @@ const UserPoints = () => {
})
}
history.forEach(chore => {
const dayName = new Date(chore.completedAt).toLocaleString('en-US', {
const dayName = new Date(chore.performedAt).toLocaleString('en-US', {
day: 'numeric',
})
@@ -167,7 +167,7 @@ const UserPoints = () => {
})
}
history.forEach(chore => {
const monthName = new Date(chore.completedAt).toLocaleString('en-US', {
const monthName = new Date(chore.performedAt).toLocaleString('en-US', {
month: 'short',
})
@@ -198,7 +198,7 @@ const UserPoints = () => {
})
}
history.forEach(chore => {
const yearName = new Date(chore.completedAt).toLocaleString('en-US', {
const yearName = new Date(chore.performedAt).toLocaleString('en-US', {
year: 'numeric',
})