mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-20 04:28:09 -05:00
Show Google Sign-In button conditionally based on the block type.
This commit is contained in:
@@ -468,9 +468,11 @@ const CustomNode: FC<NodeProps<CustomNodeData>> = ({ data, id }) => {
|
||||
{data.outputSchema && generateHandles(data.outputSchema, 'source')}
|
||||
</div>
|
||||
</div>
|
||||
<div className="google-signin-container">
|
||||
<GoogleSignInButton onTokenChange={handleTokenChange} />
|
||||
</div>
|
||||
{data.blockType === 'GoogleSheetsBlock' && (
|
||||
<div className="google-signin-container">
|
||||
<GoogleSignInButton onTokenChange={handleTokenChange} />
|
||||
</div>
|
||||
)}
|
||||
{isOutputOpen && (
|
||||
<div className="node-output">
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user