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')} > - )}