Skip to content

Commit

Permalink
Revert "feat(feedback): Change "Report a problem" link to open feedba…
Browse files Browse the repository at this point in the history
…ck modal (#7878)" (#8086)

This reverts commit c7fd4c6.
  • Loading branch information
billyvg committed Sep 29, 2023
1 parent 5b9f0b9 commit 85f6a1f
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions src/components/githubCta.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, {Fragment} from 'react';
import React from 'react';

import {FeedbackModal} from './feedback/feedbackModal';
import {SmartLink} from './smartLink';

type GitHubCTAProps = {
Expand Down Expand Up @@ -28,28 +27,9 @@ export function GitHubCTA({sourceInstanceName, relativePath}: GitHubCTAProps) {
Contribute to Docs
</SmartLink>{' '}
&nbsp;&nbsp;|&nbsp;&nbsp;
<FeedbackModal title="Report a Problem">
{({showModal}) => (
<Fragment>
<SmartLink
to="https://github.com/getsentry/sentry-docs/issues/new/choose"
onClick={e => {
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
</SmartLink>{' '}
</Fragment>
)}
</FeedbackModal>
<SmartLink to="https://github.com/getsentry/sentry-docs/issues/new/choose">
Report a problem
</SmartLink>{' '}
</div>
</small>
</div>
Expand Down

1 comment on commit 85f6a1f

@vercel
Copy link

@vercel vercel bot commented on 85f6a1f Sep 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sentry-docs – ./

sentry-docs-git-master.sentry.dev
sentry-docs.sentry.dev
docs.sentry.io

Please sign in to comment.