diff --git a/package-lock.json b/package-lock.json index a04670444..75252d7bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "pub", - "version": "1.0.74", + "version": "1.0.75", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e778431cb..c624aeaa0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pub", - "version": "1.0.74", + "version": "1.0.75", "private": true, "scripts": { "build": "gatsby build --prefix-paths", diff --git a/src/components/projects/projects-gallery/projects-gallery.tsx b/src/components/projects/projects-gallery/projects-gallery.tsx index 86fe5dda4..1285ed859 100644 --- a/src/components/projects/projects-gallery/projects-gallery.tsx +++ b/src/components/projects/projects-gallery/projects-gallery.tsx @@ -125,8 +125,11 @@ export const ProjectsGallery: FC = () => { return 'Today'; } else if (daysAgo === 1) { return `1 day ago`; - } else { + } else if (daysAgo <= 30) { return `${daysAgo} days ago`; + } else { + const months = Math.round(daysAgo / 30); + return `${months} months ago`; } }; diff --git a/src/components/shared/__tests__/feedback.spec.tsx b/src/components/shared/__tests__/feedback.spec.tsx index ba2b16c01..da65eecf4 100644 --- a/src/components/shared/__tests__/feedback.spec.tsx +++ b/src/components/shared/__tests__/feedback.spec.tsx @@ -94,7 +94,7 @@ describe('feedback form', () => { fireEvent.change(feedbackTextArea, { target: { value: 'test feedback' } }); const sendFeedbackButton = getByText('Send'); fireEvent.click(sendFeedbackButton); - const banner = await waitFor(() => getByText('Feedback sent successfully')); + const banner = await waitFor(() => getByText('Feedback sent')); // Assert expect(banner).toBeDefined(); diff --git a/src/components/shared/form/feedback.tsx b/src/components/shared/form/feedback.tsx index 5f5f36a98..2e21c189d 100644 --- a/src/components/shared/form/feedback.tsx +++ b/src/components/shared/form/feedback.tsx @@ -116,7 +116,7 @@ export const FeedbackForm: FC = () => { // TODO: simplify, will always be true if (response.ok) { - setSuccess('Feedback sent successfully'); + setSuccess('Feedback sent'); setFeedback(''); } else { // TODO: remove, currently this will never execute.