Skip to content

Commit 1d3d3df

Browse files
committed
Rename statBadge to badgeCVA.
1 parent 9f4bb04 commit 1d3d3df

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

browser-extension/src/components/Badge.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { VariantProps } from 'class-variance-authority'
22
import { twMerge } from 'tailwind-merge'
3-
import { statBadge, typeIcons } from '@/components/design'
3+
import { badgeCVA, typeIcons } from '@/components/design'
44

5-
export type BadgeProps = VariantProps<typeof statBadge> & {
5+
export type BadgeProps = VariantProps<typeof badgeCVA> & {
66
type: keyof typeof typeIcons
77
text?: number | string
88
}
@@ -12,7 +12,7 @@ const Badge = ({ text, type }: BadgeProps) => {
1212
return (
1313
<span
1414
className={twMerge(
15-
statBadge({
15+
badgeCVA({
1616
type,
1717
}),
1818
)}

browser-extension/src/components/design.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
} from 'lucide-react'
1515

1616
// CVA configuration for stat badges
17-
export const statBadge = cva(
17+
export const badgeCVA = cva(
1818
'inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-normal h-5',
1919
{
2020
defaultVariants: {

browser-extension/tests/playground/claude.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Eye, EyeOff, Search, Settings, Trash2 } from 'lucide-react'
22
import { useMemo, useState } from 'react'
33
import { twMerge } from 'tailwind-merge'
44
import Badge from '@/components/Badge'
5-
import { statBadge, typeIcons } from '@/components/design'
5+
import { badgeCVA, typeIcons } from '@/components/design'
66
import type { CommentTableRow } from '@/entrypoints/background'
77
import type { FilterState } from '@/entrypoints/popup/popup'
88
import { EnhancerRegistry } from '@/lib/registries'
@@ -39,7 +39,7 @@ const MultiSegment = <T,>({ segments, value, onValueChange }: MultiSegmentProps<
3939
return (
4040
<button
4141
key={String(segment.value)}
42-
className={`${statBadge({
42+
className={`${badgeCVA({
4343
clickable: true,
4444
selected: value === segment.value,
4545
type: segment.type,
@@ -237,7 +237,7 @@ export const ClaudePrototype = () => {
237237
type='button'
238238
onClick={() => updateFilter('showTrashed', !filters.showTrashed)}
239239
className={twMerge(
240-
statBadge({
240+
badgeCVA({
241241
clickable: true,
242242
type: filters.showTrashed ? 'trashed' : 'hideTrashed',
243243
}),
@@ -275,7 +275,7 @@ export const ClaudePrototype = () => {
275275
<button
276276
type='button'
277277
className={twMerge(
278-
statBadge({
278+
badgeCVA({
279279
clickable: true,
280280
type: 'settings',
281281
}),

0 commit comments

Comments
 (0)