Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | import { useSelector } from "react-redux"; import { currentWorkflowSelector } from "../../../store/features/workflow/workflowSlice.ts"; import { handleTriggerInput } from "../utils/handleInputs.ts"; import CopyCode from "../../common/CopyCode/index.js"; import CustomInput from "../../Inputs/CustomInput.tsx"; import { InputTypes } from "../../../types/inputs/inputTypes.ts"; function PagerdutyTriggerForm() { const currentWorkflow = useSelector(currentWorkflowSelector); return ( <div className="flex flex-col gap-2 items-start max-full rounded bg-gray-50 p-2"> {currentWorkflow.webhook && ( <div className="flex flex-col gap-2 lg:w-1/2"> <p className="text-sm p-2 border border-violet-500 bg-violet-50 rounded"> Add these Webhook details in your PagerDuty Generic Webhook(V3) page. </p> <CopyCode content={currentWorkflow.webhook} language={"curl"} /> </div> )} <div className="max-w-[415px] flex flex-col gap-2 items-start"> <div className="text-sm flex items-center gap-2 w-full"> <p className="text-sm">Filters</p> <p className="text-gray-500 text-xs italic"> (Enter service and title to select incidents) </p> </div> <div className="text-sm flex items-center gap-2 justify-between w-full"> <p className="text-xs">Service</p> <CustomInput inputType={InputTypes.TEXT} handleChange={(val) => { handleTriggerInput("serviceName", val); }} value={currentWorkflow?.trigger?.serviceName} placeholder={"Enter Service Name"} className="!w-[300px]" error={currentWorkflow?.errors?.serviceName ?? false} /> </div> <div className="text-sm flex items-center gap-2 justify-between w-full"> <p className="text-xs">Title</p> <CustomInput inputType={InputTypes.TEXT} handleChange={(val) => { handleTriggerInput("title", val); }} value={currentWorkflow?.trigger?.title} placeholder={"Enter Title"} className="!w-[300px]" error={currentWorkflow?.errors?.title ?? false} /> </div> </div> </div> ); } export default PagerdutyTriggerForm; |