feat(scans): add new component - alert bar

This commit is contained in:
Pablo Lara authored and GitHub committed 2025-01-08 11:01:52 +01:00
1 parent e8d66979b3
commit d2f338ceb6
9 files changed
+3692 -2687

No files matched your search

+3 -3
View File
@@ -1,9 +1,9 @@
import { UseRadioProps } from "@nextui-org/radio/dist/use-radio";
import { cn, useRadio, VisuallyHidden } from "@nextui-org/react";
import React from "react";
interface CustomRadioProps extends UseRadioProps {
interface CustomRadioProps {
description?: string;
value?: string;
children?: React.ReactNode;
}
@@ -18,7 +18,7 @@ export const CustomRadio: React.FC<CustomRadioProps> = (props) => {
getLabelProps,
getLabelWrapperProps,
getControlProps,
} = useRadio(props);
} = useRadio({ ...props, value: props.value || "" });
return (
<Component
+1 -1
View File
@@ -1,6 +1,6 @@
"use client";
import { Textarea } from "@nextui-org/input";
import { Textarea } from "@nextui-org/react";
import React from "react";
import { Control, FieldPath, FieldValues } from "react-hook-form";