File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
browser-extension/tests/playground Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 33import { GitPullRequestIcon , IssueOpenedIcon } from '@primer/octicons-react'
44import { cva , type VariantProps } from 'class-variance-authority'
55import {
6+ Archive ,
67 Clock ,
78 Code ,
89 Filter ,
@@ -21,6 +22,7 @@ import type { DraftStats } from '@/lib/enhancers/draftStats'
2122const statBadge = cva ( 'inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs' , {
2223 variants : {
2324 type : {
25+ archived : 'bg-gray-50 text-yellow-700' ,
2426 code : 'bg-pink-50 text-pink-700' ,
2527 image : 'bg-purple-50 text-purple-700' ,
2628 link : 'bg-blue-50 text-blue-700' ,
@@ -34,6 +36,7 @@ const statBadge = cva('inline-flex items-center gap-1 px-1.5 py-0.5 rounded text
3436
3537// Map types to their icons
3638const typeIcons = {
39+ archived : Archive ,
3740 code : Code ,
3841 image : Image ,
3942 link : Link ,
@@ -618,6 +621,7 @@ function commentRow(
618621 { row . spot . title }
619622 </ a >
620623 < Badge type = { row . isSent ? 'sent' : 'unsent' } />
624+ { row . isArchived && < Badge type = 'archived' /> }
621625 </ div >
622626 { /* Draft */ }
623627 < div className = 'text-sm truncate' >
You can’t perform that action at this time.
0 commit comments