Files
WooNooW/admin-spa/src/routes/Appearance/index.tsx
Dwindi Ramadhana 9ac09582d2 feat: implement header/footer visibility controls for checkout and thankyou pages
- 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
2025-12-25 22:20:48 +07:00

14 lines
344 B
TypeScript

import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
export default function AppearanceIndex() {
const navigate = useNavigate();
useEffect(() => {
// Redirect to General as the default appearance page
navigate('/appearance/general', { replace: true });
}, [navigate]);
return null;
}