css readability

This commit is contained in:
2026-06-28 10:02:24 +00:00
parent 0f596a3088
commit d6a8fb6353
26 changed files with 206 additions and 132 deletions

View File

@@ -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