[Glitch] Update various eslint packages and correct offences

Port 062d0b454be3f29411fa87be31307bb2a0967741 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Nicholas La Roux 2026-02-11 06:24:22 -05:00 committed by Claire
parent d3e972465d
commit 5272a18855
2 changed files with 2 additions and 2 deletions

View File

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

View File

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