diff --git a/apps/portal/src/components/offers/profile/ProfileComments.tsx b/apps/portal/src/components/offers/profile/ProfileComments.tsx index 0eeaa1a3..a9357d92 100644 --- a/apps/portal/src/components/offers/profile/ProfileComments.tsx +++ b/apps/portal/src/components/offers/profile/ProfileComments.tsx @@ -186,7 +186,7 @@ export default function ProfileComments({ display="block" isLabelHidden={false} isLoading={createCommentMutation.isLoading} - label="Comment" + label="Submit" size="sm" variant="primary" onClick={() => handleComment(currentReply)} diff --git a/apps/portal/src/components/offers/profile/comments/CommentCard.tsx b/apps/portal/src/components/offers/profile/comments/CommentCard.tsx index b958d329..7c198d32 100644 --- a/apps/portal/src/components/offers/profile/comments/CommentCard.tsx +++ b/apps/portal/src/components/offers/profile/comments/CommentCard.tsx @@ -1,10 +1,10 @@ +import { formatDistanceToNow } from 'date-fns'; import { signIn, useSession } from 'next-auth/react'; import { useState } from 'react'; import { Button, Dialog, TextArea, useToast } from '@tih/ui'; import ProfilePhotoHolder from '~/components/offers/profile/ProfilePhotoHolder'; -import { timeSinceNow } from '~/utils/offers/time'; import { trpc } from '~/utils/trpc'; import type { Reply } from '~/types/offers'; @@ -135,45 +135,45 @@ export default function CommentCard({ )}
- {user?.name ?? 'unknown user'} +
+ {user?.name ?? 'Unknown user'}
+ · +{message}