Skip to content

Commit

Permalink
feat(semantic html): use time tag
Browse files Browse the repository at this point in the history
  • Loading branch information
aprendendofelipe committed Dec 17, 2023
1 parent a89200e commit 5aa7535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/interface/components/PastTime/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export default function PastTime({ date, formatText, ...props }) {

return (
<Tooltip aria-label={tooltipLabel} suppressHydrationWarning {...props}>
<span style={{ whiteSpace: 'nowrap' }} suppressHydrationWarning>
<time dateTime={date} style={{ whiteSpace: 'nowrap' }} suppressHydrationWarning>
{getText(date)}
</span>
</time>
</Tooltip>
);
}

0 comments on commit 5aa7535

Please sign in to comment.