mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-29 23:04:23 +00:00
feat(scans): add new component - alert bar
This commit is contained in:
1 parent
e8d66979b3
commit
d2f338ceb6
9 files changed
+3692
-2687
No files matched your search
@@ -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,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";
|
||||
|
||||
|
||||
Reference in new issue
Block a user