|
|
|
@ -3,7 +3,7 @@ import React, { |
|
|
|
|
ComponentType, |
|
|
|
|
useState, |
|
|
|
|
//useRef,
|
|
|
|
|
//useEffect,
|
|
|
|
|
useEffect, |
|
|
|
|
} from "react"; |
|
|
|
|
import styles from "./OrganizedContent.module.css"; |
|
|
|
|
|
|
|
|
@ -83,6 +83,12 @@ export const OrganizedContent = ({ |
|
|
|
|
childProps: childProps, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
open |
|
|
|
|
? (document.body.style.overflow = "hidden") |
|
|
|
|
: (document.body.style.overflow = "visible"); |
|
|
|
|
}, [open]); |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className={styles.organizedContent}> |
|
|
|
|
<Nav {...childProps} /> |
|
|
|
|