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/Pages/RangedWeapon.tsx | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

(limited to 'front/src/Pages/RangedWeapon.tsx')

diff --git a/front/src/Pages/RangedWeapon.tsx b/front/src/Pages/RangedWeapon.tsx
index 9c578f8..fa61644 100644
--- a/front/src/Pages/RangedWeapon.tsx
+++ b/front/src/Pages/RangedWeapon.tsx
@@ -7,10 +7,11 @@ import { Description } from "../Models/Description";
 import { useParams } from "react-router";
 import { GetLocalizedString } from "../Locales/Locales";
 import "./Weapons.css"
+import { AuthContext } from "../Authentication/ContextProvider";
 
 const RangedWeaponsURL = `${BackendURL}/weapons/ranged`;
 
-function RangedWeaponPage() {
+export function RangedWeaponPage() {
     const { id } = useParams();
     const lang = useContext(LanguageContext);
     const [weapon, setWeapon] = useState<RangedWeapon | null>(null);
@@ -113,4 +114,14 @@ async function getWeaponDescription(id: string | undefined, lanuage: AllowedLang
     }
 }
 
-export default RangedWeaponPage;
+export function EditRangedWeaponPage() {
+    var user = useContext(AuthContext);
+
+    if (user == null || user.Role != "editor") {
+    }
+
+    return (
+        <div>
+        </div>
+    );
+}
-- 
cgit v1.3

