delete comments enabled
Deploy / deploy (push) Successful in 2m27s

This commit is contained in:
twotalesanimation
2026-06-12 10:29:16 +02:00
parent 01474084fa
commit a7195b5f78
5 changed files with 142 additions and 7 deletions
@@ -90,6 +90,7 @@ interface ReviewPageClientProps {
canApprove: boolean;
canShare: boolean;
currentUserId: string;
userRole?: string;
}
const APPROVAL_STATUS_STYLES: Record<string, string> = {
@@ -106,6 +107,7 @@ export function ReviewPageClient({
canApprove,
canShare,
currentUserId,
userRole,
}: ReviewPageClientProps) {
const [comments, setComments] = useState(initialComments);
const [annotations, setAnnotations] = useState(initialAnnotations);
@@ -348,9 +350,12 @@ export function ReviewPageClient({
fps={version.fps}
comments={comments}
onCommentsChange={handleCommentsChange}
onAnnotationDeleted={handleAnnotationSaved}
pendingFrame={pendingFrame}
onPendingFrameCleared={() => setPendingFrame(null)}
onSeekToFrame={(frame) => playerRef.current?.seekToFrame(frame)}
currentUserId={currentUserId}
isAdmin={userRole === "ADMIN"}
/>
</div>
</div>