[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:
parent
d3e972465d
commit
5272a18855
@ -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,
|
||||
);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user