To streamline the process, you can import a className such as loginStyle
and implement it like this:
html: {
overflow: hidden;
}
Next, incorporate it conditionally into your header (which must be present on every page).
For instance:
const isLoggedIn = window.location.pathname === login ? true : false
(<= Note that this is not the actual condition; adjust it so that
isLoggedIn
evaluates to true on the login page).
<Header className={
${className1} ${className2} ${isLoggedIn ? loginStyle : ' '}}/>
This way, only your login page will have that specific style applied. It might not be the easiest solution, but it should get the job done :)