css readability
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,15 +1,9 @@
|
||||
import { useEffect } from 'react'
|
||||
import { useLocation } from 'react-router-dom'
|
||||
import { injectPageCss } from './elementorCss'
|
||||
|
||||
export default function useLayoutInit() {
|
||||
const { pathname } = useLocation()
|
||||
|
||||
// Inject page-specific CSS on route change
|
||||
useEffect(() => {
|
||||
injectPageCss(pathname)
|
||||
}, [pathname])
|
||||
|
||||
// Re-initialize theme JS on route change
|
||||
useEffect(() => {
|
||||
let destroyed = false
|
||||
|
||||
Reference in New Issue
Block a user