From 85f6a1fe91dc612f1c08e211e710f72d498cdd49 Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Fri, 29 Sep 2023 12:27:29 -0400 Subject: [PATCH] Revert "feat(feedback): Change "Report a problem" link to open feedback modal (#7878)" (#8086) This reverts commit c7fd4c66b42190ebaab785d048618e47869e02bd. --- src/components/githubCta.tsx | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/src/components/githubCta.tsx b/src/components/githubCta.tsx index adc0ec6ed1ac7..fd30a99cb3555 100644 --- a/src/components/githubCta.tsx +++ b/src/components/githubCta.tsx @@ -1,6 +1,5 @@ -import React, {Fragment} from 'react'; +import React from 'react'; -import {FeedbackModal} from './feedback/feedbackModal'; import {SmartLink} from './smartLink'; type GitHubCTAProps = { @@ -28,28 +27,9 @@ export function GitHubCTA({sourceInstanceName, relativePath}: GitHubCTAProps) { Contribute to Docs {' '}   |   - - {({showModal}) => ( - - { - if (!window.Sentry?.getCurrentHub?.()) { - return true; - } - - // Only Stop event propagation if Sentry SDK is loaded - // (i.e. feedback is supported), otherwise will send you to github - e.preventDefault(); - showModal(); - return false; - }} - > - Report a problem - {' '} - - )} - + + Report a problem + {' '}