diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 156bd060..df5480ed 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -27,6 +27,7 @@ "mantine-form-zod-resolver": "^1.1.0", "react": "^18.3.1", "react-dom": "^18.3.1", + "react-error-boundary": "^4.1.2", "react-icons": "^5.3.0", "react-router-dom": "^6.26.2", "recharts": "^2.13.3", @@ -5460,6 +5461,17 @@ "react": "^18.3.1" } }, + "node_modules/react-error-boundary": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-4.1.2.tgz", + "integrity": "sha512-GQDxZ5Jd+Aq/qUxbCm1UtzmL/s++V7zKgE8yMktJiCQXCCFZnMZh9ng+6/Ne6PjNSXH0L9CjeOEREfRnq6Duag==", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "peerDependencies": { + "react": ">=16.13.1" + } + }, "node_modules/react-icons": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.3.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index a924337d..e53bdcd0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -36,6 +36,7 @@ "mantine-form-zod-resolver": "^1.1.0", "react": "^18.3.1", "react-dom": "^18.3.1", + "react-error-boundary": "^4.1.2", "react-icons": "^5.3.0", "react-router-dom": "^6.26.2", "recharts": "^2.13.3", diff --git a/frontend/src/Layout.tsx b/frontend/src/Layout.tsx index 88ecebf7..840ffff8 100644 --- a/frontend/src/Layout.tsx +++ b/frontend/src/Layout.tsx @@ -13,13 +13,15 @@ const Layout = () => { }} > - - +