This commit is contained in:
Samandar Turgunboyev
2025-11-01 19:12:38 +05:00
parent 4e9b2f3bd8
commit 193d01ed51
27 changed files with 1300 additions and 120 deletions

View File

@@ -4,7 +4,7 @@ import type {
} from "@/pages/support/lib/types";
import httpClient from "@/shared/config/api/httpClient";
import {
GET_ALL_AGENCY,
APPROVED_AGENCY,
SUPPORT_AGENCY,
SUPPORT_USER,
TOUR_ADMIN,
@@ -87,7 +87,7 @@ const updateTour = async ({
status: "pending" | "approved" | "cancelled";
};
}) => {
const res = await httpClient.patch(`${GET_ALL_AGENCY}${id}/`, body);
const res = await httpClient.patch(`${APPROVED_AGENCY}${id}/`, body);
return res;
};

View File

@@ -220,7 +220,7 @@ const SupportAgency = () => {
<div>
<div className="text-md text-white">{t("Telefon raqam")}</div>
<div>{formatPhone(selected.phone)}</div>
<div>{formatPhone(selected.phone ?? "")}</div>
</div>
<div>
@@ -321,7 +321,7 @@ const SupportAgency = () => {
{t("Telefon raqam (login)")}
</p>
<p className="text-lg font-medium">
{formatPhone(user.data.phone)}
{formatPhone(user.data.phone ?? "")}
</p>
</div>