api ulandi
This commit is contained in:
@@ -8,46 +8,7 @@ import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
interface Data {
|
||||
id: number;
|
||||
name: string;
|
||||
address: string;
|
||||
email: string;
|
||||
phone: string;
|
||||
instagram: string;
|
||||
web_site: string;
|
||||
documents: string[];
|
||||
}
|
||||
|
||||
const sampleData: Data[] = [
|
||||
{
|
||||
id: 1,
|
||||
name: "Alpha Travel",
|
||||
address: "Tashkent, Mustaqillik ko'chasi 12",
|
||||
email: "alpha@example.com",
|
||||
phone: "+998901234567",
|
||||
instagram: "https://instagram.com/alphatravel",
|
||||
web_site: "https://alphatravel.uz",
|
||||
documents: [
|
||||
"https://turan-travel.com/uploads/files/license/sertificate.jpg",
|
||||
"https://turan-travel.com/uploads/files/license/sertificate.jpg",
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "Samarkand Tours",
|
||||
address: "Samarkand, Registon 5",
|
||||
email: "info@samarktours.uz",
|
||||
phone: "+998903334455",
|
||||
instagram: "https://instagram.com/samarktours",
|
||||
web_site: "https://samarktours.uz",
|
||||
documents: [
|
||||
"https://turan-travel.com/uploads/files/license/sertificate.jpg",
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const SupportAgency = ({ requests = sampleData }) => {
|
||||
const SupportAgency = () => {
|
||||
const [query, setQuery] = useState("");
|
||||
const { t } = useTranslation();
|
||||
const [selected, setSelected] = useState<GetSupportAgencyRes | null>(null);
|
||||
|
||||
Reference in New Issue
Block a user