From 7d9976689e0584eba55ef36475a8cb94d2f0eefe Mon Sep 17 00:00:00 2001 From: Toran Bruce Richards Date: Sat, 20 Jul 2024 22:55:52 +0100 Subject: [PATCH] refactor: Update CustomNode component to conditionally show Google Sign-In button The CustomNode component in CustomNode.tsx has been updated to conditionally show the Google Sign-In button based on the block type. Previously, the button was only shown for the 'GoogleSheetsBlock' type, but now it will be shown for any block type that includes 'Google' in its name. This change improves the flexibility and usability of the component. --- rnd/autogpt_builder/src/components/CustomNode.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rnd/autogpt_builder/src/components/CustomNode.tsx b/rnd/autogpt_builder/src/components/CustomNode.tsx index b38314df5b..a9eaf846a9 100644 --- a/rnd/autogpt_builder/src/components/CustomNode.tsx +++ b/rnd/autogpt_builder/src/components/CustomNode.tsx @@ -468,7 +468,7 @@ const CustomNode: FC> = ({ data, id }) => { {data.outputSchema && generateHandles(data.outputSchema, 'source')} - {data.blockType === 'GoogleSheetsBlock' && ( + {data.blockType.includes('Google') && (