Skip to content

Commit 4dd8dfa

Browse files
committed
unhide some ui component when disabling the dnd
1 parent 35a580e commit 4dd8dfa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/App.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function App() {
2929
markOnboardingAsCompleted,
3030
maxVisibleCards,
3131
isPauseModeActive,
32+
pauseTo,
3233
} = useUserPreferences()
3334

3435
useLayoutEffect(() => {
@@ -67,12 +68,14 @@ function App() {
6768

6869
if (dndLayoutDiv) {
6970
observer.observe(dndLayoutDiv)
71+
} else {
72+
document.documentElement.classList.remove('dndState')
7073
}
7174

7275
return () => {
7376
observer.disconnect()
7477
}
75-
}, [])
78+
}, [pauseTo])
7679

7780
return (
7881
<>

0 commit comments

Comments
 (0)