- Add eslint.config.mjs (flat config, eslint-config-next@16 + TypeScript) - Add .gitea/workflows/ci.yaml (lint, test:unit, build on all branches) - Refactor deploy.yaml: needs: [ci] gate, Docker rollback tag, Telegram notifications - Fix 3 pre-existing lint errors (empty interfaces, ts-ignore, require imports)
17 lines
398 B
TypeScript
17 lines
398 B
TypeScript
import * as React from "react"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
export type LabelProps = React.LabelHTMLAttributes<HTMLLabelElement>
|
|
|
|
export function Label({ className, ...props }: LabelProps) {
|
|
return (
|
|
<label
|
|
className={cn(
|
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|