chore: upgrade to react 19 beta and next 14 canary

This commit is contained in:
2024-05-19 14:53:00 +02:00
parent fe429295ef
commit 63e0be09e6
65 changed files with 2626 additions and 1898 deletions

View File

@@ -1,16 +1,12 @@
"use client";
import * as React from "react";
import { ComponentProps } from "react";
import * as LabelPrimitive from "@radix-ui/react-label";
import { cn } from "@/lib/style";
export const Label = React.forwardRef<
React.ElementRef<typeof LabelPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>
>(({ className, ...props }, ref) => (
export const Label = ({ className, ...props }: ComponentProps<typeof LabelPrimitive.Root>) => (
<LabelPrimitive.Root
{...{ ref }}
className={cn(
"leading-none",
"peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
@@ -18,5 +14,4 @@ export const Label = React.forwardRef<
)}
{...props}
/>
));
Label.displayName = LabelPrimitive.Root.displayName;
);