Skip to content

Commit 8064232

Browse files
committed
🧹
1 parent 6151e80 commit 8064232

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

site/src/modules/resources/AppLink/AppLink.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
33
import CircularProgress from "@mui/material/CircularProgress";
44
import Link from "@mui/material/Link";
55
import Tooltip from "@mui/material/Tooltip";
6-
import { type FC, useState } from "react";
6+
import { type FC, type MouseEvent, useState } from "react";
77
import { API } from "api/api";
88
import type * as TypesGen from "api/typesGenerated";
99
import { useProxy } from "contexts/ProxyContext";
@@ -119,12 +119,11 @@ export const AppLink: FC<AppLinkProps> = ({ app, workspace, agent }) => {
119119
endIcon={isPrivateApp ? undefined : <ShareIcon app={app} />}
120120
disabled={!canClick}
121121
href={href}
122-
target="_blank"
123122
css={{
124123
pointerEvents: canClick ? undefined : "none",
125124
textDecoration: "none !important",
126125
}}
127-
onClick={async (event) => {
126+
onClick={async (event: MouseEvent<HTMLElement>) => {
128127
if (!canClick) {
129128
return;
130129
}

site/src/modules/resources/TerminalLink/TerminalLink.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Link from "@mui/material/Link";
2-
import type { FC } from "react";
2+
import type { FC, MouseEvent } from "react";
33
import type * as TypesGen from "api/typesGenerated";
44
import { TerminalIcon } from "components/Icons/TerminalIcon";
55
import { generateRandomString } from "utils/random";
@@ -40,8 +40,7 @@ export const TerminalLink: FC<TerminalLinkProps> = ({
4040
component={AgentButton}
4141
startIcon={<TerminalIcon />}
4242
href={href}
43-
target="_blank"
44-
onClick={(event) => {
43+
onClick={(event: MouseEvent<HTMLElement>) => {
4544
event.preventDefault();
4645
window.open(
4746
href,

0 commit comments

Comments
 (0)