Skip to content

Commit 015cc84

Browse files
committed
Remove dangling icons
1 parent 88493d9 commit 015cc84

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

browser-extension/tests/playground/claude.tsx

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@ import {
22
ArrowDown,
33
ArrowUp,
44
Image,
5-
CheckCircle2,
6-
Circle,
75
Code,
86
ExternalLink,
97
Filter,
10-
GitCommit,
11-
GitPullRequest,
128
Link,
13-
MessageSquare,
149
Search,
1510
Trash2,
16-
XCircle,
1711
} from 'lucide-react'
1812
import { IssueOpenedIcon, GitPullRequestIcon } from '@primer/octicons-react'
1913
import { useMemo, useState } from 'react'
@@ -79,7 +73,7 @@ const generateMockDrafts = () => [
7973
hasCode: false,
8074
hasImage: true,
8175
id: '4',
82-
kind: 'Review',
76+
kind: 'PR',
8377
lastEdit: Date.now() - 1000 * 60 * 60 * 24,
8478
linkCount: 3,
8579
number: 9012,
@@ -187,36 +181,6 @@ export const ClaudePrototype = () => {
187181
}
188182
}
189183

190-
const getStateIcon = (state: { type: string }) => {
191-
switch (state.type) {
192-
case 'open':
193-
return <Circle className='w-3 h-3 text-sky-500' />
194-
case 'merged':
195-
return <CheckCircle2 className='w-3 h-3 text-emerald-500' />
196-
case 'closed':
197-
return <XCircle className='w-3 h-3 text-rose-500' />
198-
case 'post':
199-
return <MessageSquare className='w-3 h-3 text-slate-500' />
200-
default:
201-
return null
202-
}
203-
}
204-
205-
const getKindIcon = (kind: string) => {
206-
switch (kind) {
207-
case 'PR':
208-
return <GitPullRequest className='w-3 h-3' />
209-
case 'Issue':
210-
return <Circle className='w-3 h-3' />
211-
case 'Review':
212-
return <GitCommit className='w-3 h-3' />
213-
case 'Comment':
214-
return <MessageSquare className='w-3 h-3' />
215-
default:
216-
return null
217-
}
218-
}
219-
220184
const handleOpen = (url: string) => {
221185
window.open(url, '_blank')
222186
}
@@ -451,11 +415,6 @@ export const ClaudePrototype = () => {
451415
>
452416
#{draft.number} {draft.repoSlug}
453417
</a>
454-
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded-full text-xs bg-gray-100 border border-gray-300'>
455-
{getKindIcon(draft.kind)}
456-
{draft.kind}
457-
</span>
458-
{getStateIcon(draft.state)}
459418
</div>
460419

461420
{/* Title + snippet */}

0 commit comments

Comments
 (0)