Skip to content

Commit 31fd953

Browse files
committed
Wire-up the claude thingy a little better.
1 parent 1d10767 commit 31fd953

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

tests/playground/claude.tsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,23 +278,37 @@ function commentRow(
278278
</div>
279279
<div className="flex flex-shrink-0 items-center gap-1">
280280
{row.latestDraft.stats.links.length > 0 && (
281-
<Badge type="link" text={row.latestDraft.stats.links.length} />
281+
<Badge
282+
type="link"
283+
text={row.latestDraft.stats.links.length}
284+
data={row}
285+
/>
282286
)}
283287
{row.latestDraft.stats.images.length > 0 && (
284288
<Badge
285289
type="image"
286290
text={row.latestDraft.stats.images.length}
291+
data={row}
287292
/>
288293
)}
289294
{row.latestDraft.stats.codeBlocks.length > 0 && (
290295
<Badge
291296
type="code"
292297
text={row.latestDraft.stats.codeBlocks.length}
298+
data={row}
293299
/>
294300
)}
295-
<Badge type="text" text={row.latestDraft.stats.charCount} />
296-
<Badge type="time" text={timeAgo(row.latestDraft.time)} />
297-
{row.isOpenTab && <Badge type="open" />}
301+
<Badge
302+
type="text"
303+
text={row.latestDraft.stats.charCount}
304+
data={row}
305+
/>
306+
<Badge
307+
type="time"
308+
text={timeAgo(row.latestDraft.time)}
309+
data={row}
310+
/>
311+
{row.isOpenTab && <Badge type="open" data={row} />}
298312
</div>
299313
</div>
300314

0 commit comments

Comments
 (0)