Skip to content

Commit

Permalink
Update src/components/message.jsx
Browse files Browse the repository at this point in the history
Update time formatter utility function usage

Co-authored-by: Demian Parkhomenko <[email protected]>
  • Loading branch information
firehawk89 and DemianParkhomenko authored Sep 24, 2023
1 parent 1660f44 commit 90f50c4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/message.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import Image from 'next/image'
import Link from 'next/link'

export default function Message({ sentAt, children }) {
const time = getFormattedTime(sentAt, {
hourOptions: '2-digit',
minuteOptions: '2-digit',
})

const { format: formatTime } = timeFormatter()
return (
<div className="flex items-end gap-2">
<Link className="rounded-full overflow-hidden" href="/">
Expand Down

0 comments on commit 90f50c4

Please sign in to comment.