record.id}
+ size="large"
+ pagination={false}
+ />
+ );
}
export default function Logs() {
diff --git a/web/pages/webhooks.tsx b/web/pages/webhooks.tsx
index 2e94b4d5d7..d508fe2033 100644
--- a/web/pages/webhooks.tsx
+++ b/web/pages/webhooks.tsx
@@ -13,7 +13,7 @@ import {
Col,
} from 'antd';
import { DeleteOutlined } from '@ant-design/icons';
-import isValidUrl from '../utils/urls';
+import isValidUrl, { DEFAULT_TEXTFIELD_URL_PATTERN } from '../utils/urls';
import { fetchData, DELETE_WEBHOOK, CREATE_WEBHOOK, WEBHOOKS } from '../utils/apis';
@@ -86,7 +86,11 @@ function NewWebhookModal(props: Props) {
};
const checkboxes = events.map(function (singleEvent) {
- return ({singleEvent.label})
+ return (
+
+ {singleEvent.label}
+
+ );
});
return (
@@ -101,15 +105,15 @@ function NewWebhookModal(props: Props) {
setWebhookUrl(input.currentTarget.value)}
+ onChange={input => setWebhookUrl(input.currentTarget.value.trim())}
+ type="url"
+ pattern={DEFAULT_TEXTFIELD_URL_PATTERN}
/>
Select the events that will be sent to this webhook.
-
- {checkboxes}
-
+ {checkboxes}