File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
browser-extension/tests/playground Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 99 Image ,
1010 Link ,
1111 Search ,
12+ Clock ,
1213 TextSelect ,
1314 Trash2 ,
1415} from 'lucide-react'
@@ -157,7 +158,7 @@ const timeAgo = (date: Date | number) => {
157158 ]
158159 for ( const i of intervals ) {
159160 const v = Math . floor ( seconds / i . secs )
160- if ( v >= 1 ) return `${ v } ${ i . label } ago `
161+ if ( v >= 1 ) return `${ v } ${ i . label } `
161162 }
162163 return 'just now'
163164}
@@ -515,6 +516,10 @@ function commentRow(
515516 < TextSelect className = 'w-3 h-3' />
516517 { draft . charCount }
517518 </ span >
519+ < span className = 'inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-gray-50 text-gray-700' >
520+ < Clock className = 'w-3 h-3' />
521+ { timeAgo ( draft . lastEdit ) }
522+ </ span >
518523 </ div >
519524 </ div >
520525
You can’t perform that action at this time.
0 commit comments