feat(filters): use TextArea for webhook data field (#785)

switch to TextArea for webhook data input field
This commit is contained in:
soup 2023-03-26 23:12:22 +02:00 committed by GitHub
parent b6062ffc60
commit 5851b0abe5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,7 @@ import { CollapsableSection } from "./details";
import { CustomTooltip } from "../../components/tooltips/CustomTooltip";
import { Link } from "react-router-dom";
import { useFormikContext } from "formik";
import { TextArea } from "../../components/inputs/input";
interface FilterActionsProps {
filter: Filter;
@ -183,10 +184,11 @@ const TypeForm = ({ action, idx, clients }: TypeFormProps) => {
columns={6}
placeholder="Host eg. http://localhost/webhook"
/>
<TextField
<TextArea
name={`actions.${idx}.webhook_data`}
label="Data (json)"
columns={6}
rows={5}
placeholder={"Request data: { \"key\": \"value\" }"}
/>
</div>