fix(frontend): repair merge-damaged syntax left by the pm/RBAC revert cycle
Stray braces in App.tsx / ChangeInventoryPage.tsx, an orphaned admin gate in ArrivalsPage.tsx, and a literal revert commit subject pasted into LoginPage.tsx — all made the committed tree unbuildable.
This commit is contained in:
@@ -95,7 +95,7 @@ export function LoginPage() {
|
||||
// سرپرست پروژه → پنل مدیریت پروژه (PM)؛ مدیر پروژه → پنل انبار؛ بقیه → دفتر
|
||||
if (user.role === "supervisor") navigate("/panel/pm");
|
||||
else navigate(user.role === "pm" ? "/inventory" : "/");
|
||||
} (revert: restore production to the state before 730d0bd (PM/RBAC work moved to 'pm'))
|
||||
}
|
||||
} catch (err) {
|
||||
toast.error(err instanceof Error ? err.message : "خطا در ورود");
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user