Added the webhook source detail to the trigger block
This commit is contained in:
+8
-8
@@ -316,22 +316,22 @@ function StepBody({ step }: { step: Step }) {
|
||||
}
|
||||
|
||||
function Webhook({ webhook }: { webhook: TriggerType<Trigger, "WEBHOOK"> }) {
|
||||
console.log(webhook);
|
||||
return (
|
||||
<>
|
||||
<div className="flex justify-between items-baseline">
|
||||
<Header3 size="large" className="mb-4">
|
||||
{webhook.name}
|
||||
</Header3>
|
||||
{/* <div className="flex items-baseline gap-2">
|
||||
{Object.entries(webhook.).map(([key, value]) => (
|
||||
<div key={key} className="flex gap-1 items-baseline">
|
||||
<Header3 size="large" className="mb-2">
|
||||
{webhook.name}
|
||||
</Header3>
|
||||
<div className="flex flex-col gap-1 mb-2">
|
||||
{webhook.source &&
|
||||
Object.entries(webhook.source).map(([key, value]) => (
|
||||
<div key={key} className="flex gap-2 items-baseline">
|
||||
<Body size="extra-small" className={workflowNodeUppercaseClasses}>
|
||||
{key}
|
||||
</Body>
|
||||
<Body size="small">{value}</Body>
|
||||
</div>
|
||||
))}
|
||||
</div> */}
|
||||
</div>
|
||||
{webhook.input && (
|
||||
<CodeBlock code={stringifyCode(webhook.input)} align="top" />
|
||||
|
||||
Reference in New Issue
Block a user