From c52a0d29845b4b2cf74e12e7ca69290fb61f7d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Tue, 27 Feb 2024 10:53:21 +0000 Subject: [PATCH] fix: only show events link if editing --- .../IncomingWebhooksModal/IncomingWebhooksModal.tsx | 6 +++++- .../ProjectActionsModal/ProjectActionsModal.tsx | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/incomingWebhooks/IncomingWebhooksModal/IncomingWebhooksModal.tsx b/frontend/src/component/incomingWebhooks/IncomingWebhooksModal/IncomingWebhooksModal.tsx index 375f1369571d..a9dd8ee0e237 100644 --- a/frontend/src/component/incomingWebhooks/IncomingWebhooksModal/IncomingWebhooksModal.tsx +++ b/frontend/src/component/incomingWebhooks/IncomingWebhooksModal/IncomingWebhooksModal.tsx @@ -17,6 +17,7 @@ import { TokenGeneration, useIncomingWebhooksForm, } from './IncomingWebhooksForm/useIncomingWebhooksForm'; +import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; const StyledHeader = styled('div')(({ theme }) => ({ display: 'flex', @@ -158,7 +159,10 @@ export const IncomingWebhooksModal = ({ > {title} - View events + View events} + /> ({ display: 'flex', @@ -163,7 +164,10 @@ export const ProjectActionsModal = ({ > {title} - View events + View events} + />