forked from github/plane
3dc18bc8fd
* refactor: webhooks workflow * chore: update delete modal content
27 lines
594 B
TypeScript
27 lines
594 B
TypeScript
import { Input } from "@plane/ui";
|
|
|
|
type Props = {
|
|
value: string;
|
|
onChange: (value: string) => void;
|
|
hasError: boolean;
|
|
};
|
|
export const WebhookInput: React.FC<Props> = (props) => {
|
|
const { value, onChange, hasError } = props;
|
|
|
|
return (
|
|
<>
|
|
<h6 className="font-medium text-sm">Payload URL</h6>
|
|
<Input
|
|
type="url"
|
|
className="w-full h-11"
|
|
onChange={(e) => onChange(e.target.value)}
|
|
value={value}
|
|
autoComplete="off"
|
|
hasError={hasError}
|
|
placeholder="https://example.com/post"
|
|
autoFocus
|
|
/>
|
|
</>
|
|
);
|
|
};
|