Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit df19ddf

Browse files
Fix links
1 parent 2e61e62 commit df19ddf

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/auth/gcp/GCPConnect/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export function GCPConnect({ variant = 'button' }: GCPConnectProps) {
4444
}, [serviceAccount, form]);
4545

4646
// eslint-disable-next-line unicorn/consistent-function-scoping
47-
const redirect = () => window.open('https://console.cloud.google.com/iam-admin/iam', '_blank');
47+
const redirect = () =>
48+
window.top?.open('https://console.cloud.google.com/iam-admin/iam', '_blank');
4849

4950
const getCredentials = async () => {
5051
setIsLoading(true);

src/components/display/setupGuide/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import Divider from '@mui/material/Divider';
99
import Stack from '@mui/material/Stack';
1010
import Typography from '@mui/material/Typography';
1111

12+
import { Link } from '../link';
13+
1214
/**
1315
* @public
1416
*/
@@ -45,10 +47,12 @@ export function SetupGuide({ docsLink, title, children, maxHeight }: SetupGuideP
4547
<Typography variant="h6">Setup guide</Typography>
4648
{!!docsLink && (
4749
<Button
48-
onClick={() => window.open(docsLink, '_blank')}
50+
LinkComponent={Link}
4951
variant="outlined"
5052
color="secondary"
5153
endIcon={<LinkIcon />}
54+
href={docsLink}
55+
target="_blank"
5256
>
5357
Open docs
5458
</Button>

0 commit comments

Comments
 (0)