diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 8d210d4..5b7c3b3 100755 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -18,6 +18,9 @@ import AuthPromptModal from './customer/AuthPromptModal'; import { useThemeMode } from './theme/ThemeContext'; import { useCustomerAuth } from './customer/CustomerAuthContext'; import { useCart } from './cart/CartContext'; +import ErrorBoundary from './components/ErrorBoundary'; +import ErrorFallback from './components/ErrorFallback'; +import DevThrow from './components/DevThrow'; const { Header, Content, Footer } = Layout; const { Title } = Typography; @@ -251,17 +254,33 @@ export default function App() { {loading && !items.length && !failed ? : null} - + ( + window.location.reload()}> + Reload + + } + /> + )} + > + {import.meta.env.DEV && } + +