Skip to content

Commit 41ede88

Browse files
committed
Move the up/down to the column header.
1 parent 98f1645 commit 41ede88

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

browser-extension/tests/playground/claude.tsx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import {
2+
ArrowDown,
3+
ArrowUp,
24
AtSign,
35
CheckCircle2,
46
Circle,
@@ -326,15 +328,6 @@ export const ClaudePrototype = () => {
326328
<span className='text-sm'>Private only</span>
327329
</label>
328330

329-
{/* Sort */}
330-
<select
331-
value={sortBy}
332-
onChange={(e) => setSortBy(e.target.value)}
333-
className='px-3 py-1.5 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500'
334-
>
335-
<option value='edited-newest'>Edited (newest)</option>
336-
<option value='edited-oldest'>Edited (oldest)</option>
337-
</select>
338331

339332
{/* Search */}
340333
<div className='relative flex-1 max-w-xs'>
@@ -399,7 +392,18 @@ export const ClaudePrototype = () => {
399392
scope='col'
400393
className='px-3 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider'
401394
>
402-
Edited
395+
<button
396+
type='button'
397+
onClick={() => setSortBy(sortBy === 'edited-newest' ? 'edited-oldest' : 'edited-newest')}
398+
className='flex items-center gap-1 hover:text-gray-700'
399+
>
400+
Edited
401+
{sortBy === 'edited-newest' ? (
402+
<ArrowDown className='w-3 h-3' />
403+
) : (
404+
<ArrowUp className='w-3 h-3' />
405+
)}
406+
</button>
403407
</th>
404408
<th
405409
scope='col'

0 commit comments

Comments
 (0)