Commit edf548f8 authored by Lê Bảo Hồng Đức's avatar Lê Bảo Hồng Đức

fix route member,partner

parent 24f675cf
...@@ -6,7 +6,7 @@ import { useState } from "react"; ...@@ -6,7 +6,7 @@ import { useState } from "react";
import { useAdvertisements } from "@/app/(main)/(home)/lib/use-advertisements"; import { useAdvertisements } from "@/app/(main)/(home)/lib/use-advertisements";
import { resolveUploadUrl } from "@/links"; import { resolveUploadUrl } from "@/links";
const FALLBACK_HREF = "https://vcci-hcm.org.vn"; const FALLBACK_HREF = "https://vccihcm.vn";
const FALLBACK_SRC = "/quang-cao/qc-1.jpg"; const FALLBACK_SRC = "/quang-cao/qc-1.jpg";
/** /**
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
import { useHomePosts } from "@/app/(main)/(home)/lib/use-home-posts"; import { useHomePosts } from "@/app/(main)/(home)/lib/use-home-posts";
import ImageNext from "@/components/shared/image-next"; import ImageNext from "@/components/shared/image-next";
import memberImages from "@/constants/memberImages"; import memberImages from "@/constants/memberImages";
import links from "@/links";
import Link from "next/link"; import Link from "next/link";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { Autoplay } from "swiper/modules"; import { Autoplay } from "swiper/modules";
...@@ -12,7 +11,10 @@ import "swiper/css"; ...@@ -12,7 +11,10 @@ import "swiper/css";
import dayjs from "dayjs"; import dayjs from "dayjs";
const MEMBER_CONNECTION_FALLBACK_IMAGE = "/home/20-2048x1365.webp"; const MEMBER_CONNECTION_FALLBACK_IMAGE = "/home/20-2048x1365.webp";
const FEATURED_MEMBER_API_URL = `${links.siteURL}api/featured-members`; const FEATURED_MEMBER_API_URL =
"https://vccihcm.vn/api/v1.0/organizations" +
"?filters=users.status_id+%3D%3D+36ca1cc5-7b6e-4f9f-b973-69c5207deb62" +
"&pageSize=12&sortField=created_at&sortOrder=ASC";
const FEATURED_MEMBER_MORE_URL = const FEATURED_MEMBER_MORE_URL =
"https://vccihcm.vn/giao-thuong-b2b?filters=users.status_id+%3D%3D+36ca1cc5-7b6e-4f9f-b973-69c5207deb62&sortField=created_at&sortOrder=ASC"; "https://vccihcm.vn/giao-thuong-b2b?filters=users.status_id+%3D%3D+36ca1cc5-7b6e-4f9f-b973-69c5207deb62&sortField=created_at&sortOrder=ASC";
const VCCI_HCM_ORIGIN = "https://vccihcm.vn"; const VCCI_HCM_ORIGIN = "https://vccihcm.vn";
......
...@@ -5,7 +5,6 @@ import ImageNext from "@/components/shared/image-next"; ...@@ -5,7 +5,6 @@ import ImageNext from "@/components/shared/image-next";
import partnerImages from "@/constants/partnerImages"; import partnerImages from "@/constants/partnerImages";
import { ChevronRight, Play } from "lucide-react"; import { ChevronRight, Play } from "lucide-react";
import Link from "next/link"; import Link from "next/link";
import links from "@/links";
import { fetchClientVideos } from "@/lib/api/videos"; import { fetchClientVideos } from "@/lib/api/videos";
import { Autoplay } from "swiper/modules"; import { Autoplay } from "swiper/modules";
import { Swiper, SwiperSlide } from "swiper/react"; import { Swiper, SwiperSlide } from "swiper/react";
...@@ -24,7 +23,10 @@ type PartnerResponse = { ...@@ -24,7 +23,10 @@ type PartnerResponse = {
}; };
}; };
const PARTNER_API_URL = `${links.siteURL}api/partners`; const PARTNER_API_URL =
"https://vccihcm.vn/api/v1.0/organizations" +
"?filters=type%3D%3DSPONSOR&pageSize=12" +
"&sortField=sort_order&sortOrder=ASC";
const VCCI_HCM_ORIGIN = "https://vccihcm.vn"; const VCCI_HCM_ORIGIN = "https://vccihcm.vn";
const resolvePartnerImage = (avatar: string | null | undefined, index: number) => { const resolvePartnerImage = (avatar: string | null | undefined, index: number) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment