File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,13 @@ import { NotificationHeader } from './notification/NotificationHeader';
23
23
24
24
interface INotificationRow {
25
25
notification : Notification ;
26
+ isAnimated ?: boolean ;
26
27
isRead ?: boolean ;
27
28
}
28
29
29
30
export const NotificationRow : FC < INotificationRow > = ( {
30
31
notification,
32
+ isAnimated = false ,
31
33
isRead = false ,
32
34
} : INotificationRow ) => {
33
35
const {
@@ -88,10 +90,9 @@ export const NotificationRow: FC<INotificationRow> = ({
88
90
id = { notification . id }
89
91
className = { cn (
90
92
'group flex border-b border-gray-100 bg-white px-3 py-2 hover:bg-gray-100 dark:border-gray-darker dark:bg-gray-dark dark:text-white dark:hover:bg-gray-darker' ,
91
- animateExit &&
93
+ ( isAnimated || animateExit ) &&
92
94
'translate-x-full opacity-0 transition duration-[350ms] ease-in-out' ,
93
- showAsRead && Opacity . READ ,
94
- isRead && Opacity . READ ,
95
+ ( isRead || showAsRead ) && Opacity . READ ,
95
96
) }
96
97
>
97
98
< div
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ export const RepositoryNotifications: FC<IRepositoryNotifications> = ({
117
117
< NotificationRow
118
118
key = { notification . id }
119
119
notification = { notification }
120
+ isAnimated = { animateExit }
120
121
isRead = { showAsRead }
121
122
/>
122
123
) ) }
You can’t perform that action at this time.
0 commit comments