From f50307b60725eb39fb825254a356e3aec5cc478f Mon Sep 17 00:00:00 2001 From: Toran Bruce Richards Date: Sat, 20 Jul 2024 21:30:20 +0100 Subject: [PATCH] Show Google Sign-In button conditionally based on the block type. --- rnd/autogpt_builder/src/components/CustomNode.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rnd/autogpt_builder/src/components/CustomNode.tsx b/rnd/autogpt_builder/src/components/CustomNode.tsx index 3a7f1b89f4..b38314df5b 100644 --- a/rnd/autogpt_builder/src/components/CustomNode.tsx +++ b/rnd/autogpt_builder/src/components/CustomNode.tsx @@ -468,9 +468,11 @@ const CustomNode: FC> = ({ data, id }) => { {data.outputSchema && generateHandles(data.outputSchema, 'source')} -
- -
+ {data.blockType === 'GoogleSheetsBlock' && ( +
+ +
+ )} {isOutputOpen && (