fix(frontend): declare pathname alongside location in RequireAuth (pm merge semantic conflict)
This commit is contained in:
@@ -59,6 +59,7 @@ function Loading() {
|
||||
function RequireAuth({ children }: { children: React.ReactNode }) {
|
||||
const user = useAuthStore((s) => s.user);
|
||||
const location = useLocation();
|
||||
const pathname = location.pathname;
|
||||
|
||||
// در صورت داشتن شناسه پیشنویس (از ربات بله)، دسترسی مستقیم به ویزارد بدون لاگین مجاز است
|
||||
const searchParams = new URLSearchParams(location.search);
|
||||
|
||||
Reference in New Issue
Block a user