mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 01:51:12 -05:00
Refactor: Suppress initial render transitions
This commit is contained in:
@@ -53,6 +53,7 @@ interface QueueItemProps {
|
||||
isAdmin: boolean;
|
||||
isSuperuser: boolean;
|
||||
queueIsLoading: boolean;
|
||||
isInitialRender?: boolean;
|
||||
onNoteChange: (id: string, value: string) => void;
|
||||
onApprove: (item: ModerationItem, action: 'approved' | 'rejected', notes?: string) => void;
|
||||
onResetToPending: (item: ModerationItem) => void;
|
||||
@@ -86,6 +87,7 @@ export const QueueItem = memo(({
|
||||
isAdmin,
|
||||
isSuperuser,
|
||||
queueIsLoading,
|
||||
isInitialRender = false,
|
||||
onNoteChange,
|
||||
onApprove,
|
||||
onResetToPending,
|
||||
@@ -106,7 +108,7 @@ export const QueueItem = memo(({
|
||||
return (
|
||||
<Card
|
||||
key={item.id}
|
||||
className={`border-l-4 transition-opacity duration-200 ${
|
||||
className={`border-l-4 ${!isInitialRender ? 'transition-opacity duration-200' : ''} ${
|
||||
validationResult?.blockingErrors && validationResult.blockingErrors.length > 0 ? 'border-l-red-600' :
|
||||
item.status === 'flagged' ? 'border-l-red-500' :
|
||||
item.status === 'approved' ? 'border-l-green-500' :
|
||||
|
||||
Reference in New Issue
Block a user