From d32ed92902d52934a55cdb9efe110ef11cd920d8 Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Sat, 16 Aug 2025 09:52:55 +0700 Subject: (andri) make component card mediacard --- src/lib/brand/components/BrandCard.jsx | 1 + src/lib/brand/components/MediaCard.jsx | 42 ++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 src/lib/brand/components/MediaCard.jsx (limited to 'src/lib/brand') diff --git a/src/lib/brand/components/BrandCard.jsx b/src/lib/brand/components/BrandCard.jsx index dff61b24..411e2669 100644 --- a/src/lib/brand/components/BrandCard.jsx +++ b/src/lib/brand/components/BrandCard.jsx @@ -5,6 +5,7 @@ import { createSlug } from '@/core/utils/slug'; const BrandCard = ({ brand }) => { const { isMobile } = useDevice(); + // console.log("Brand logo:", brand.logo); return ( { + const { isMobile } = useDevice(); + +// console.log("Media logo:", media); + + return ( + + {media.image ? ( + + ) : ( + + {media.name} + + )} + + ); +}; + +export default MediaCard; -- cgit v1.2.3 From ce3e4b16b3983e52a79dfc1dbaba528df4600de3 Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Thu, 16 Oct 2025 18:26:56 +0700 Subject: (andri) fix redirect --- src/lib/brand/components/MediaCard.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/brand') diff --git a/src/lib/brand/components/MediaCard.jsx b/src/lib/brand/components/MediaCard.jsx index a6591abd..8bb88b92 100644 --- a/src/lib/brand/components/MediaCard.jsx +++ b/src/lib/brand/components/MediaCard.jsx @@ -10,7 +10,7 @@ const MediaCard = ({ media }) => { return ( Date: Fri, 17 Oct 2025 16:36:33 +0700 Subject: (andri) fix link + seq media berita --- src/lib/brand/components/MediaCard.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/brand') diff --git a/src/lib/brand/components/MediaCard.jsx b/src/lib/brand/components/MediaCard.jsx index 8bb88b92..4a298e15 100644 --- a/src/lib/brand/components/MediaCard.jsx +++ b/src/lib/brand/components/MediaCard.jsx @@ -6,11 +6,11 @@ import { createSlug } from '@/core/utils/slug'; const MediaCard = ({ media }) => { const { isMobile } = useDevice(); -// console.log("Media logo:", media); + console.log("Media logo:", media); return (