Skip to content

Commit d120c1c

Browse files
committed
fix: resolve TypeScript errors in button component
1 parent 1d01e41 commit d120c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ui/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface ButtonProps
4141

4242
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
4343
({ className, variant, size, asChild = false, ...props }, ref) => {
44-
const Comp = asChild ? Slot : "button";
44+
const Comp: React.ElementType = asChild ? Slot : "button";
4545
return (
4646
<Comp
4747
className={cn(buttonVariants({ variant, size, className }))}

0 commit comments

Comments
 (0)