File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -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 = {
@@ -104,13 +104,11 @@ export const TaskAppIFrame: FC<TaskAppIFrameProps> = ({
104
104
</ Button >
105
105
</ DropdownMenuTrigger >
106
106
< DropdownMenuContent align = "end" >
107
- < DropdownMenuItem
108
- onClick = { ( ) => {
109
- openAppInNewWindow ( frameSrc ) ;
110
- } }
111
- >
112
- < ExternalLinkIcon />
113
- Open app in new tab
107
+ < DropdownMenuItem asChild >
108
+ < RouterLink to = { frameSrc } target = "_blank" >
109
+ < ExternalLinkIcon />
110
+ Open app in new tab
111
+ </ RouterLink >
114
112
</ DropdownMenuItem >
115
113
</ DropdownMenuContent >
116
114
</ DropdownMenu >
You can’t perform that action at this time.
0 commit comments