diff --git a/src/frontend/src/components/ui/checkbox.tsx b/src/frontend/src/components/ui/checkbox.tsx index 55d805027..f7c6b7917 100644 --- a/src/frontend/src/components/ui/checkbox.tsx +++ b/src/frontend/src/components/ui/checkbox.tsx @@ -26,4 +26,20 @@ const Checkbox = React.forwardRef< )); Checkbox.displayName = CheckboxPrimitive.Root.displayName; -export { Checkbox }; +const CheckBoxDiv = (({ className = "", checked }: {className?: string, checked?: boolean}) => ( +
+ {checked && ( +
+ +
+ )} +
+)); + +export { CheckBoxDiv, Checkbox }; diff --git a/src/frontend/src/modals/ConfirmationModal/index.tsx b/src/frontend/src/modals/ConfirmationModal/index.tsx index e5b8c629f..3530a45ac 100644 --- a/src/frontend/src/modals/ConfirmationModal/index.tsx +++ b/src/frontend/src/modals/ConfirmationModal/index.tsx @@ -1,7 +1,11 @@ import React, { useEffect, useState } from "react"; import ShadTooltip from "../../components/ShadTooltipComponent"; import { Button } from "../../components/ui/button"; -import { ConfirmationModalType, ContentProps, TriggerProps } from "../../types/components"; +import { + ConfirmationModalType, + ContentProps, + TriggerProps, +} from "../../types/components"; import { nodeIconsLucide } from "../../utils/styleUtils"; import BaseModal from "../baseModal"; @@ -12,15 +16,14 @@ const Trigger: React.FC = ({ children, tooltipContent, side, - asChild, -}) => { - return asChild ? children : (tooltipContent ? ( +}: TriggerProps) => { + return tooltipContent ? (
{children}
) : (
{children}
- )); + ); }; function ConfirmationModal({ title, @@ -59,13 +62,7 @@ function ConfirmationModal({ return ( - <> - {triggerChild && ( - - {triggerChild} - - )} - + {triggerChild} {title} - +
-
@@ -342,6 +342,7 @@ export default function AdminPage() {
- +
-
@@ -411,6 +411,7 @@ export default function AdminPage() { - +