set a black background body class on enter/exit of component
This commit is contained in:
parent
1cd643314f
commit
4413572c1c
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user