- Created LayoutWrapper component to conditionally render header/footer based on route - Created MinimalHeader component (logo only) - Created MinimalFooter component (trust badges + policy links) - Created usePageVisibility hook to get visibility settings per page - Wrapped ClassicLayout with LayoutWrapper for conditional rendering - Header/footer visibility now controlled directly in React SPA - Settings: show/minimal/hide for both header and footer - Background color support for checkout and thankyou pages
18 lines
436 B
TypeScript
18 lines
436 B
TypeScript
import React from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import './index.css';
|
|
import './styles/fonts.css';
|
|
import './styles/theme.css';
|
|
import App from './App';
|
|
|
|
const el = document.getElementById('woonoow-customer-app');
|
|
if (el) {
|
|
createRoot(el).render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>
|
|
);
|
|
} else {
|
|
console.warn('[WooNooW Customer] Root element #woonoow-customer-app not found.');
|
|
}
|