change url param name to "subdomain"

This commit is contained in:
2025-10-31 13:56:20 +03:00
parent 42d0b2cacf
commit 3dddc78dda
24 changed files with 89 additions and 116 deletions

View File

@@ -11,7 +11,7 @@ import { ProGray1 } from "ThemeConstants";
import { ACCESS_TOKEN } from "utils/constants";
export default function OtpPage() {
const { id } = useParams();
const { subdomain } = useParams();
const { t } = useTranslation();
const [sendOtp, { isLoading }] = useSendOtpMutation();
const [confirmOtp, { isLoading: isConfirmLoading }] = useConfirmOtpMutation();
@@ -87,7 +87,7 @@ export default function OtpPage() {
);
localStorage.setItem(ACCESS_TOKEN, response.result.access_token);
message.info(t("otp.confirmOTPSuccess"));
navigate(`/${id}/menu`);
navigate(`/${subdomain}/menu`);
});
}}
>