Update various eslint packages and correct offences (#37814)

This commit is contained in:
Nicholas La Roux
2026-02-11 06:24:22 -05:00
committed by GitHub
parent 8c2c94fa6c
commit 062d0b454b
6 changed files with 178 additions and 167 deletions

View File

@@ -26,7 +26,7 @@ export const ExitAnimationWrapper: React.FC<{
* Render prop that provides the nested component with the `delayedIsActive` flag
*/
children: (delayedIsActive: boolean) => React.ReactNode;
}> = ({ isActive = false, delayMs = 500, withEntryDelay, children }) => {
}> = ({ isActive, delayMs = 500, withEntryDelay, children }) => {
const [delayedIsActive, setDelayedIsActive] = useState(
isActive && !withEntryDelay,
);

View File

@@ -292,7 +292,7 @@ function shouldMarkNewNotificationsAsRead(
function updateLastReadId(
state: NotificationGroupsState,
group: NotificationGroup | undefined = undefined,
group?: NotificationGroup,
) {
if (shouldMarkNewNotificationsAsRead(state)) {
group = group ?? state.groups.find(isNotificationGroup);