@@ -12,10 +12,10 @@ import {
12
12
HouseIcon ,
13
13
RotateCwIcon ,
14
14
} from "lucide-react" ;
15
- import { openAppInNewWindow } from "modules/apps/apps" ;
16
15
import { useAppLink } from "modules/apps/useAppLink" ;
17
16
import type { Task } from "modules/tasks/tasks" ;
18
17
import { type FC , useRef } from "react" ;
18
+ import { Link as RouterLink } from "react-router-dom" ;
19
19
import { cn } from "utils/cn" ;
20
20
21
21
type TaskAppIFrameProps = {
@@ -64,20 +64,6 @@ export const TaskAppIFrame: FC<TaskAppIFrameProps> = ({
64
64
return (
65
65
< div className = { cn ( [ active ?"flex" :"hidden" , "w-full h-full flex-col" ] ) } >
66
66
< div className = "bg-surface-tertiary flex items-center p-2 py-1 gap-1" >
67
- < Button
68
- size = "icon"
69
- variant = "subtle"
70
- onClick = { ( e ) => {
71
- e . preventDefault ( ) ;
72
- if ( frameRef . current ?. contentWindow ) {
73
- frameRef . current . contentWindow . location . reload ( ) ;
74
- }
75
- } }
76
- >
77
- < RotateCwIcon />
78
- < span className = "sr-only" > Refresh</ span >
79
- </ Button >
80
-
81
67
< Button
82
68
size = "icon"
83
69
variant = "subtle"
@@ -104,13 +90,11 @@ export const TaskAppIFrame: FC<TaskAppIFrameProps> = ({
104
90
</ Button >
105
91
</ DropdownMenuTrigger >
106
92
< DropdownMenuContent align = "end" >
107
- < DropdownMenuItem
108
- onClick = { ( ) => {
109
- openAppInNewWindow ( frameSrc ) ;
110
- } }
111
- >
112
- < ExternalLinkIcon />
113
- Open app in new tab
93
+ < DropdownMenuItem asChild >
94
+ < RouterLink to = { frameSrc } target = "_blank" >
95
+ < ExternalLinkIcon />
96
+ Open app in new tab
97
+ </ RouterLink >
114
98
</ DropdownMenuItem >
115
99
</ DropdownMenuContent >
116
100
</ DropdownMenu >