From 164b76fad806b078aad8c537ba9bdcfbfc757dca Mon Sep 17 00:00:00 2001
From: physcik <mynameisgennadiy@vk.com>
Date: Tue, 5 May 2026 11:39:54 +0500
Subject: css changes + error handling

---
 front/src/App.tsx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'front/src/App.tsx')

diff --git a/front/src/App.tsx b/front/src/App.tsx
index 7b68f3e..da9cbfd 100644
--- a/front/src/App.tsx
+++ b/front/src/App.tsx
@@ -10,17 +10,19 @@ import { useEffect, useState } from 'react';
 import { ReadCurrentLocale, SaveCurrentLocale } from './Locales/Locales';
 import LegalNote from './Emelents/LegalNote';
 import WeaponsIndex from './Pages/Weapons';
-import RangedWeaponPage from './Pages/RangedWeapon';
-import { AuthContext, Authentication, GetUserInfo } from './Authentication/ContextProvider';
+import { AuthContext, GetUserInfo } from './Authentication/ContextProvider';
 import { useCookies } from 'react-cookie';
 import LoginPage from './Authentication/LoginPage';
 import LogoutPage from './Authentication/LogoutPage';
 import { User } from './Authentication/Models';
 import RegisterPage from './Authentication/RegisterPage';
+import { EditRangedWeaponPage, RangedWeaponPage } from './Pages/RangedWeapon';
+import ErrorHandler from './ErrorHandler';
 
 const router = createBrowserRouter([
     {
         index: true,
+        errorElement: (<ErrorHandler />),
         element: (<IndexElement />),
     },
     {
@@ -35,6 +37,10 @@ const router = createBrowserRouter([
         path: "/weapons/:id",
         element: (<RangedWeaponPage />),
     },
+    {
+        path: "/weapons/:id/edit",
+        element: (<EditRangedWeaponPage />),
+    },
 
     // auth
     {
-- 
cgit v1.3

