File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
(org)/dashboard/_components/Notifications Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ const Notifications = forwardRef<HTMLDivElement, NotificationsProps>(
7777 return (
7878 < motion . div
7979 ref = { ref }
80- initial = { { opacity : 0 , y : 4 , scale : 0.98 , display : "hidden " } }
80+ initial = { { opacity : 0 , y : 4 , scale : 0.98 , display : "none " } }
8181 animate = { { opacity : 1 , y : 0 , scale : 1 , display : "flex" } }
82- exit = { { opacity : 0 , y : 4 , scale : 0.98 , display : "hidden " } }
82+ exit = { { opacity : 0 , y : 4 , scale : 0.98 , display : "none " } }
8383 transition = { { ease : "easeOut" , duration : 0.2 } }
8484 onClick = { ( e ) => e . stopPropagation ( ) }
8585 className = { clsx (
Original file line number Diff line number Diff line change @@ -610,7 +610,7 @@ async function AuthorizedContent({
610610 toplLevelCommentId = parentComment ?. parentCommentId ;
611611 }
612612
613- const commentToHighlight = toplLevelCommentId ?? commentId ;
613+ const commentToBringToTheTop = toplLevelCommentId ?? commentId ;
614614
615615
616616 const allComments = await db ( )
@@ -630,8 +630,8 @@ async function AuthorizedContent({
630630 . leftJoin ( users , eq ( comments . authorId , users . id ) )
631631 . where ( eq ( comments . videoId , videoId ) )
632632 . orderBy (
633- commentToHighlight
634- ? sql `CASE WHEN ${ comments . id } = ${ commentToHighlight } THEN 0 ELSE 1 END, ${ comments . createdAt } `
633+ commentToBringToTheTop
634+ ? sql `CASE WHEN ${ comments . id } = ${ commentToBringToTheTop } THEN 0 ELSE 1 END, ${ comments . createdAt } `
635635 : comments . createdAt
636636 ) ;
637637
You can’t perform that action at this time.
0 commit comments