Skip to content

Commit 0b1c559

Browse files
ref(js): Remove browserHistory from ClientSecretModal (#88767)
1 parent 5e2d598 commit 0b1c559

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

static/gsAdmin/views/instanceLevelOAuth/components/clientSecretModal.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import {Fragment} from 'react';
22

33
import type {ModalRenderProps} from 'sentry/actionCreators/modal';
4-
import {Button} from 'sentry/components/core/button';
5-
import {browserHistory} from 'sentry/utils/browserHistory';
4+
import {LinkButton} from 'sentry/components/core/button';
65

76
interface ClientDetails {
87
clientID: string;
@@ -23,12 +22,9 @@ function ClientSecretModal({
2322
Your client secret is <b>{clientSecret}</b>
2423
</p>
2524
<p>Make sure you save this now! You will not be able to see it again later.</p>
26-
<Button
27-
priority="danger"
28-
onClick={() => browserHistory.push(`/_admin/instance-level-oauth/${clientID}/`)}
29-
>
25+
<LinkButton priority="danger" to={`/_admin/instance-level-oauth/${clientID}/`}>
3026
I understand, take me to the rest of my client details.
31-
</Button>
27+
</LinkButton>
3228
</Body>
3329
</Fragment>
3430
);

0 commit comments

Comments
 (0)