Skip to content

Commit 8228f5c

Browse files
committed
View run not in new window
1 parent 5b4f6c6 commit 8228f5c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

apps/webapp/app/components/logs/LogsTable.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ArrowPathIcon, ArrowTopRightOnSquareIcon } from "@heroicons/react/20/so
22
import { Link } from "@remix-run/react";
33
import { useEffect, useRef, useState } from "react";
44
import { cn } from "~/utils/cn";
5-
import { Button } from "~/components/primitives/Buttons";
5+
import { Button, LinkButton } from "~/components/primitives/Buttons";
66
import { useEnvironment } from "~/hooks/useEnvironment";
77
import { useOrganization } from "~/hooks/useOrganizations";
88
import { useProject } from "~/hooks/useProject";
@@ -182,11 +182,13 @@ export function LogsTable({
182182
<TableCellMenu
183183
className="pl-32"
184184
hiddenButtons={
185-
<Link to={runPath} target="_blank" rel="noopener noreferrer">
186-
<Button variant="minimal/small" TrailingIcon={ArrowTopRightOnSquareIcon}>
187-
View run
188-
</Button>
189-
</Link>
185+
<LinkButton
186+
to={runPath}
187+
variant="minimal/small"
188+
TrailingIcon={ArrowTopRightOnSquareIcon}
189+
>
190+
View run
191+
</LinkButton>
190192
}
191193
/>
192194
</TableRow>

0 commit comments

Comments
 (0)