Skip to content

Commit e061e79

Browse files
chore: update imports and add lint ignore comments in UI components
1 parent d01abd3 commit e061e79

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

packages/ui/registry/default/ui/chart.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {
7878

7979
return (
8080
<style
81+
// biome-ignore lint/security/noDangerouslySetInnerHtml: There is no risk of XSS here.
8182
dangerouslySetInnerHTML={{
8283
__html: Object.entries(THEMES)
8384
.map(

packages/ui/registry/default/ui/form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from "react";
2-
import * as LabelPrimitive from "@radix-ui/react-label";
2+
import type * as LabelPrimitive from "@radix-ui/react-label";
33
import { Slot } from "@radix-ui/react-slot";
44
import {
55
Controller,

packages/ui/registry/default/ui/input-otp.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function InputOTPSlot({
6868

6969
function InputOTPSeparator({ ...props }: React.ComponentProps<"div">) {
7070
return (
71+
// biome-ignore lint/a11y/useAriaPropsForRole: This component is not interactive.
7172
<div data-slot="input-otp-separator" role="separator" {...props}>
7273
<MinusIcon />
7374
</div>

packages/ui/registry/default/ui/sonner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useTheme } from "next-themes";
2-
import { Toaster as Sonner, ToasterProps } from "sonner";
2+
import { Toaster as Sonner, type ToasterProps } from "sonner";
33

44
const Toaster = ({ ...props }: ToasterProps) => {
55
const { theme = "system" } = useTheme();

0 commit comments

Comments
 (0)