Skip to content

Commit 77d5085

Browse files
committed
fix: update import path for RadioGroup in SettingsDialog component
1 parent 11dc180 commit 77d5085

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

app/components/assistant-ui/SettingsDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from "@/components/ui/dialog";
1111
import { Label } from "@/components/ui/label";
1212
import { Input } from "@/components/ui/input";
13-
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
13+
import { RadioGroup, RadioGroupItem } from "@/app/components/ui/radio-group";
1414
import { Button } from "@/components/ui/button";
1515

1616
interface SettingsDialogProps {

components/ui/label.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
"use client";
2+
3+
import * as React from "react";
4+
import * as LabelPrimitive from "@radix-ui/react-label";
5+
6+
import { cn } from "@/lib/utils";
7+
8+
function Label({
9+
className,
10+
...props
11+
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
12+
return (
13+
<LabelPrimitive.Root
14+
data-slot="label"
15+
className={cn(
16+
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
17+
className,
18+
)}
19+
{...props}
20+
/>
21+
);
22+
}
23+
24+
export { Label };

0 commit comments

Comments
 (0)