@@ -78,38 +78,40 @@ export const RepositoryNotifications: FC<IRepositoryNotifications> = ({
7878 </ span >
7979 </ div >
8080
81- < HoverGroup >
82- < InteractionButton
83- title = "Mark Repository as Done"
84- icon = { CheckIcon }
85- size = { Size . MEDIUM }
86- onClick = { ( event : MouseEvent < HTMLElement > ) => {
87- // Don't trigger onClick of parent element.
88- event . stopPropagation ( ) ;
89- setAnimateExit ( ! settings . delayNotificationState ) ;
90- setShowAsRead ( settings . delayNotificationState ) ;
91- markRepoNotificationsDone ( repoNotifications [ 0 ] ) ;
92- } }
93- />
94- < InteractionButton
95- title = "Mark Repository as Read"
96- icon = { ReadIcon }
97- size = { Size . SMALL }
98- onClick = { ( event : MouseEvent < HTMLElement > ) => {
99- // Don't trigger onClick of parent element.
100- event . stopPropagation ( ) ;
101- setAnimateExit ( ! settings . delayNotificationState ) ;
102- setShowAsRead ( settings . delayNotificationState ) ;
103- markRepoNotificationsRead ( repoNotifications [ 0 ] ) ;
104- } }
105- />
106- < InteractionButton
107- title = { toggleRepositoryNotificationsLabel }
108- icon = { ChevronIcon }
109- size = { Size . SMALL }
110- onClick = { toggleRepositoryNotifications }
111- />
112- </ HoverGroup >
81+ { ! animateExit && (
82+ < HoverGroup >
83+ < InteractionButton
84+ title = "Mark Repository as Done"
85+ icon = { CheckIcon }
86+ size = { Size . MEDIUM }
87+ onClick = { ( event : MouseEvent < HTMLElement > ) => {
88+ // Don't trigger onClick of parent element.
89+ event . stopPropagation ( ) ;
90+ setAnimateExit ( ! settings . delayNotificationState ) ;
91+ setShowAsRead ( settings . delayNotificationState ) ;
92+ markRepoNotificationsDone ( repoNotifications [ 0 ] ) ;
93+ } }
94+ />
95+ < InteractionButton
96+ title = "Mark Repository as Read"
97+ icon = { ReadIcon }
98+ size = { Size . SMALL }
99+ onClick = { ( event : MouseEvent < HTMLElement > ) => {
100+ // Don't trigger onClick of parent element.
101+ event . stopPropagation ( ) ;
102+ setAnimateExit ( ! settings . delayNotificationState ) ;
103+ setShowAsRead ( settings . delayNotificationState ) ;
104+ markRepoNotificationsRead ( repoNotifications [ 0 ] ) ;
105+ } }
106+ />
107+ < InteractionButton
108+ title = { toggleRepositoryNotificationsLabel }
109+ icon = { ChevronIcon }
110+ size = { Size . SMALL }
111+ onClick = { toggleRepositoryNotifications }
112+ />
113+ </ HoverGroup >
114+ ) }
113115 </ div >
114116
115117 { showRepositoryNotifications &&
0 commit comments