diff --git a/app/(site)/[...show]/container.tsx b/app/(site)/[...show]/container.tsx index 34f5868..c3d07f3 100644 --- a/app/(site)/[...show]/container.tsx +++ b/app/(site)/[...show]/container.tsx @@ -16,6 +16,7 @@ const Container: FC = ({ showId, showType }) => ( showType={showType} className='rounded-lg bg-background' posterClassName='md:rounded-lg' + externalLink={false} />
diff --git a/components/Preview/components/Actions/index.tsx b/components/Preview/components/Actions/index.tsx index 0b18e3e..3409fb2 100644 --- a/components/Preview/components/Actions/index.tsx +++ b/components/Preview/components/Actions/index.tsx @@ -12,13 +12,30 @@ import { cn } from '@/lib/utils'; interface Props { show: Show & Partial
; className: string; + externalLink: boolean; } -const Actions = ({ show, className }: Props) => { +const Actions = ({ show, className, externalLink }: Props) => { const { toast } = useToast(); const state = useShowState({ showId: show.id, showType: show.type }); const toggle = useMutateShowState(show); + const copyLink = ( + + ); + return (
@@ -49,31 +66,29 @@ const Actions = ({ show, className }: Props) => { - - - - - + {externalLink ? ( + + {copyLink} + {externalLink && ( + + )} + + ) : ( + copyLink + )}
- +

{show.overview} diff --git a/components/Trending/components/Gallery/index.tsx b/components/Trending/components/Gallery/index.tsx index 8e5211c..2cbcf6a 100644 --- a/components/Trending/components/Gallery/index.tsx +++ b/components/Trending/components/Gallery/index.tsx @@ -17,11 +17,17 @@ const Gallery: FC = ({ shows }) => ( ref={setScrollElement} className='no-scrollbar flex animate-fade-aside-slide-in snap-x snap-mandatory gap-2 overflow-auto rounded-lg opacity-0' > - {shows.map((show) => ( -

  • - showPreviewModal({ show })} /> -
  • - ))} + {shows + .filter((show) => show.poster['1x']) + .map((show) => ( +
  • + showPreviewModal({ show })} + /> +
  • + ))} )}