diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeAdvancedToggle.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeAdvancedToggle.tsx index 950db1657f..e9c8a08cfb 100644 --- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeAdvancedToggle.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeAdvancedToggle.tsx @@ -1,21 +1,39 @@ import { useNodeStore } from "@/app/(platform)/build/stores/nodeStore"; -import { Switch } from "@/components/atoms/Switch/Switch"; +import { Button } from "@/components/atoms/Button/Button"; import { Text } from "@/components/atoms/Text/Text"; +import { CaretDownIcon } from "@phosphor-icons/react"; -export const NodeAdvancedToggle = ({ nodeId }: { nodeId: string }) => { +type Props = { + nodeId: string; +}; + +export function NodeAdvancedToggle({ nodeId }: Props) { const showAdvanced = useNodeStore( (state) => state.nodeAdvancedStates[nodeId] || false, ); const setShowAdvanced = useNodeStore((state) => state.setShowAdvanced); return ( -
- - Advanced - - setShowAdvanced(nodeId, checked)} - checked={showAdvanced} - /> +
+
); -}; +}