summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-07-16 08:53:39 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-07-16 08:53:39 +0000
commit1d2e70e1c348e8e0c437cedc548bd7a07d95e16f (patch)
tree5b574ccc68b69e77b6f1c19b94f2514628584ca1
parent0b2384079c06596d39295de52bf604bfb6449105 (diff)
parent937013e8bf9f176c18a31d94205b9116d2a02224 (diff)
Merged in Feature/all-promotion (pull request #167)
Feature/all promotion
-rw-r--r--src-migrate/services/promotionProgram.ts1
-rw-r--r--src/lib/home/components/PreferredBrand.jsx5
-rw-r--r--src/lib/home/components/PromotionProgram.jsx5
3 files changed, 10 insertions, 1 deletions
diff --git a/src-migrate/services/promotionProgram.ts b/src-migrate/services/promotionProgram.ts
index 92c60943..8bf2a0bd 100644
--- a/src-migrate/services/promotionProgram.ts
+++ b/src-migrate/services/promotionProgram.ts
@@ -8,7 +8,6 @@ export const getPromotionProgram = async (
};
export const getPromotionProgramSolr = async () => {
- console.log(`/solr/promotion-program/select?q=*:*`)
const response = await fetch(`/solr/promotion_programs/select?indent=true&q.op=OR&q=*:*&fq=banner_s:[* TO *]`);
if (!response.ok) {
throw new Error('Network response was not ok');
diff --git a/src/lib/home/components/PreferredBrand.jsx b/src/lib/home/components/PreferredBrand.jsx
index ec09aa4e..6b64a444 100644
--- a/src/lib/home/components/PreferredBrand.jsx
+++ b/src/lib/home/components/PreferredBrand.jsx
@@ -48,6 +48,11 @@ const PreferredBrand = () => {
Lihat Semua
</Link>
)}
+ {isMobile && (
+ <Link href='/shop/brands' className='!text-red-500 font-semibold sm:text-h-sm'>
+ Lihat Semua
+ </Link>
+ )}
</div>
{manufactures.isLoading && <PreferredBrandSkeleton />}
{!manufactures.isLoading && (
diff --git a/src/lib/home/components/PromotionProgram.jsx b/src/lib/home/components/PromotionProgram.jsx
index 5034fd28..99258d94 100644
--- a/src/lib/home/components/PromotionProgram.jsx
+++ b/src/lib/home/components/PromotionProgram.jsx
@@ -17,6 +17,11 @@ const BannerSection = () => {
Lihat Semua
</Link>
)}
+ {isMobile && (
+ <Link href='/shop/promo' className='!text-red-500 font-semibold sm:text-h-sm'>
+ Lihat Semua
+ </Link>
+ )}
</div>
{isDesktop && (promotionProgram.data &&
promotionProgram.data?.length > 0 && (