mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-20 20:48:11 -05:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user