fix(frontend): declare pathname alongside location in RequireAuth (pm merge semantic conflict)

This commit is contained in:
MMD
2026-10-06 15:47:32 +03:30
parent 64bd292335
commit dcc4d693f5
+1
View File
@@ -59,6 +59,7 @@ function Loading() {
function RequireAuth({ children }: { children: React.ReactNode }) { function RequireAuth({ children }: { children: React.ReactNode }) {
const user = useAuthStore((s) => s.user); const user = useAuthStore((s) => s.user);
const location = useLocation(); const location = useLocation();
const pathname = location.pathname;
// در صورت داشتن شناسه پیش‌نویس (از ربات بله)، دسترسی مستقیم به ویزارد بدون لاگین مجاز است // در صورت داشتن شناسه پیش‌نویس (از ربات بله)، دسترسی مستقیم به ویزارد بدون لاگین مجاز است
const searchParams = new URLSearchParams(location.search); const searchParams = new URLSearchParams(location.search);