Skip to content

Commit

Permalink
Add suppressHydrationWarning to avoid hydration issues in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SatsAllDay committed Oct 24, 2023
1 parent 072692f commit fb8efb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/satistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function Fact ({ fact }) {
<div className={`${styles.type} ${satusClass(fact.status)} ${fact.sats > 0 ? '' : 'text-muted'}`}>{fact.type}</div>
<div className={styles.detail}>
<Detail fact={fact} />
<div className='text-muted px-3' title={fact.createdAt}>{timeSince(new Date(fact.createdAt))}</div>
<div className='text-muted px-3' title={fact.createdAt} suppressHydrationWarning>{timeSince(new Date(fact.createdAt))}</div>
</div>
<div className={`${styles.sats} ${satusClass(fact.status)} ${fact.sats > 0 ? '' : 'text-muted'}`}>{fact.sats}</div>
</>
Expand Down

0 comments on commit fb8efb0

Please sign in to comment.