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.
This commit is contained in:
Toran Bruce Richards
2024-07-20 22:55:52 +01:00
parent dda3402c1d
commit 7d9976689e

View File

@@ -468,7 +468,7 @@ const CustomNode: FC<NodeProps<CustomNodeData>> = ({ data, id }) => {
{data.outputSchema && generateHandles(data.outputSchema, 'source')}
</div>
</div>
{data.blockType === 'GoogleSheetsBlock' && (
{data.blockType.includes('Google') && (
<div className="google-signin-container">
<GoogleSignInButton onTokenChange={handleTokenChange} />
</div>