Skip to content

Commit

Permalink
feat(filters): use TextArea for webhook data field (#785)
Browse files Browse the repository at this point in the history
switch to TextArea for webhook data input field
  • Loading branch information
s0up4200 committed Mar 26, 2023
1 parent b6062ff commit 5851b0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/screens/filters/action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 5851b0a

Please sign in to comment.