This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useState } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { ExternalLink, Copy, Check, Trash2, Clock } from "lucide-react";
|
||||
import { ExternalLink, Copy, Check, Trash2, Clock, Film } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useToast } from "@/components/ui/use-toast";
|
||||
import { cn, formatRelativeDate } from "@/lib/utils";
|
||||
@@ -15,6 +15,7 @@ interface ReviewSession {
|
||||
expiresAt: Date | string | null;
|
||||
accessCount: number;
|
||||
isActive: boolean;
|
||||
allowedEpisodes: string[];
|
||||
project: { name: string };
|
||||
}
|
||||
|
||||
@@ -101,7 +102,20 @@ export function ReviewSessionList({ sessions }: ReviewSessionListProps) {
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
<p className="font-mono text-xs text-zinc-600 truncate mt-1">{portalUrl}</p>
|
||||
<div className="font-mono text-xs text-zinc-600 truncate mt-1">{portalUrl}</div>
|
||||
{session.allowedEpisodes && session.allowedEpisodes.length > 0 && (
|
||||
<div className="flex items-center gap-1.5 mt-1.5 flex-wrap">
|
||||
<Film className="h-3 w-3 text-violet-400 shrink-0" />
|
||||
{session.allowedEpisodes.map((ep) => (
|
||||
<span
|
||||
key={ep}
|
||||
className="text-xs px-1.5 py-0.5 rounded bg-violet-500/10 text-violet-300 border border-violet-500/20"
|
||||
>
|
||||
{ep}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-1.5 shrink-0">
|
||||
|
||||
Reference in New Issue
Block a user