From c7dd7eff19469b3530dc88874de74bdb2fe412f4 Mon Sep 17 00:00:00 2001 From: ner Date: Sun, 17 Nov 2024 21:14:58 +0200 Subject: [PATCH] fix: show in new tab --- components/Preview/components/Actions/index.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/components/Preview/components/Actions/index.tsx b/components/Preview/components/Actions/index.tsx index 3409fb2..f376226 100644 --- a/components/Preview/components/Actions/index.tsx +++ b/components/Preview/components/Actions/index.tsx @@ -4,7 +4,6 @@ import { Bookmark, ExternalLink, Heart, Link, Play, Star } from 'lucide-react'; import { Button } from '@/components/ui/button'; import ButtonsGroup from '@/components/ui/buttons-group'; -import { SITE_URL } from '@/env'; import useShowState, { useMutateShowState } from '@/hooks/useShowState'; import { useToast } from '@/hooks/useToast'; import { cn } from '@/lib/utils'; @@ -75,13 +74,8 @@ const Actions = ({ show, className, externalLink }: Props) => { title='Open in new tab' variant='outline' className='relative h-8 px-3' + onClick={() => window.open(`${location.origin}/${show.type}/${show.id}`, '_blank')} > - )}