set a black background body class on enter/exit of component
This commit is contained in:
1 parent
1cd643314f
commit
4413572c1c
1 file changed
+8
@@ -36,6 +36,14 @@ function StudyListContainer({ history, data: studies }) {
|
||||
const [expandedRows, setExpandedRows] = useState([]);
|
||||
const numOfStudies = studies.length;
|
||||
|
||||
// Set body style
|
||||
useEffect(()=> {
|
||||
document.body.classList.add('bg-black');
|
||||
return () => {
|
||||
document.body.classList.remove('bg-black');
|
||||
}
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
if (!debouncedFilterValues) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user