update: webhooks

This commit is contained in:
anik-ghosh-au7
2022-07-16 15:59:21 +05:30
parent d3260f4f32
commit a69dd95992
3 changed files with 120 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ import {
UpdateWebhookModalViews,
} from '../constants';
import { WebhooksDataQuery } from '../graphql/queries';
import DeleteWebhookModal from '../components/DeleteWebhookModal';
interface paginationPropTypes {
limit: number;
@@ -209,7 +210,11 @@ const Webhooks = () => {
selectedWebhook={webhook}
fetchWebookData={fetchWebookData}
/>
<MenuItem onClick={() => {}}>Delete</MenuItem>
<DeleteWebhookModal
webhookId={webhook[WebhookInputDataFields.ID]}
eventName={webhook[WebhookInputDataFields.EVENT_NAME]}
fetchWebookData={fetchWebookData}
/>
<MenuItem onClick={() => {}}>View Logs</MenuItem>
</MenuList>
</Menu>