diff --git a/ui/src/components/FieldLabel.tsx b/ui/src/components/FieldLabel.tsx index 614e3c3..f9065a1 100644 --- a/ui/src/components/FieldLabel.tsx +++ b/ui/src/components/FieldLabel.tsx @@ -1,5 +1,4 @@ import React from "react"; -import { LuInfo } from "react-icons/lu"; import { cx } from "@/cva.config"; @@ -9,7 +8,6 @@ interface Props { as?: "label" | "span"; description?: string | React.ReactNode | null; disabled?: boolean; - info?: string; } export default function FieldLabel({ label, @@ -17,36 +15,7 @@ export default function FieldLabel({ as = "label", description, disabled, - info, }: Props) { - const labelContent = ( - <> -
- {label} - {info && ( -
- - -
- )} -
- {description && ( - - {description} - - )} - - ); - if (as === "label") { return ( ); } else if (as === "span") { return (
- {labelContent} + {label} + {description && ( + + {description} + + )}
); } else { return <>; } -} +} \ No newline at end of file