diff --git a/apps/web-tss/src/components/features/metrics/StatusBadgeIndicator/StatusBadgeIndicator.stories.tsx b/apps/web-tss/src/components/features/metrics/StatusBadgeIndicator/StatusBadgeIndicator.stories.tsx index 0b4a6af91..837122eb5 100644 --- a/apps/web-tss/src/components/features/metrics/StatusBadgeIndicator/StatusBadgeIndicator.stories.tsx +++ b/apps/web-tss/src/components/features/metrics/StatusBadgeIndicator/StatusBadgeIndicator.stories.tsx @@ -1,40 +1,40 @@ -import type { Meta, StoryObj } from '@storybook/nextjs'; -import { VerificationStatusSchema, type ShareAssetType } from '@buster/server-shared/share'; +import { type ShareAssetType, VerificationStatusSchema } from '@buster/server-shared/share'; +import type { Meta, StoryObj } from '@storybook/react-vite'; import { StatusBadgeIndicator } from './StatusBadgeIndicator'; const meta = { title: 'Features/Metrics/StatusBadgeIndicator', component: StatusBadgeIndicator, parameters: { - layout: 'centered' + layout: 'centered', }, tags: ['autodocs'], args: { status: 'notRequested', size: 16, - showTooltip: true + showTooltip: true, }, argTypes: { status: { control: 'select', options: Object.values(VerificationStatusSchema.enum), - description: 'The verification status of the badge' + description: 'The verification status of the badge', }, size: { control: { type: 'number' }, description: 'The size of the badge in pixels', - defaultValue: 16 + defaultValue: 16, }, showTooltip: { control: 'boolean', description: 'Whether to show a tooltip on hover', - defaultValue: true + defaultValue: true, }, className: { control: 'text', - description: 'Additional CSS classes to apply to the badge' - } - } + description: 'Additional CSS classes to apply to the badge', + }, + }, } satisfies Meta; export default meta; @@ -43,59 +43,59 @@ type Story = StoryObj; // Basic StatusBadgeIndicator examples for each status export const NotRequested: Story = { args: { - status: 'notRequested' - } + status: 'notRequested', + }, }; export const Requested: Story = { args: { - status: 'requested' - } + status: 'requested', + }, }; export const InReview: Story = { args: { - status: 'inReview' - } + status: 'inReview', + }, }; export const Verified: Story = { args: { - status: 'verified' - } + status: 'verified', + }, }; export const Backlogged: Story = { args: { - status: 'backlogged' - } + status: 'backlogged', + }, }; export const NotVerified: Story = { args: { - status: 'notVerified' - } + status: 'notVerified', + }, }; // Size variations export const LargeSize: Story = { args: { status: 'verified', - size: 24 - } + size: 24, + }, }; export const SmallSize: Story = { args: { status: 'verified', - size: 12 - } + size: 12, + }, }; // Without tooltip export const WithoutTooltip: Story = { args: { status: 'verified', - showTooltip: false - } + showTooltip: false, + }, }; diff --git a/apps/web-tss/src/components/ui/breadcrumb/Breadcrumb.tsx b/apps/web-tss/src/components/ui/breadcrumb/Breadcrumb.tsx index e2612bb45..96c929560 100644 --- a/apps/web-tss/src/components/ui/breadcrumb/Breadcrumb.tsx +++ b/apps/web-tss/src/components/ui/breadcrumb/Breadcrumb.tsx @@ -30,7 +30,7 @@ export const Breadcrumb = React.memo( const lastItemIndex = items.length - 1; return ( - + {items.map((item, index) => ( >( ({ className, ...props }, ref) => ( + // biome-ignore lint/a11y/useSemanticElements: I need to spend real time to fix this