Skip to content

Commit c7f1ba2

Browse files
committed
add sector and publisher image
1 parent d22ecc0 commit c7f1ba2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/[locale]/(user)/components/ListingComponent.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ const ListingComponent: React.FC<ListingProps> = ({
282282
{categoryImage && (
283283
<div className="flex flex-col items-center justify-center rounded-2 bg-baseGraySlateSolid2 p-2">
284284
<Image
285-
src={categoryImage}
285+
src={`/Sectors/${categoryName}.svg`}
286286
width={164}
287287
height={164}
288288
alt={`${categoryName} Logo`}
@@ -416,7 +416,7 @@ const ListingComponent: React.FC<ListingProps> = ({
416416

417417
<div className="flex w-full flex-col gap-4 px-2">
418418
{Object.values(queryParams.filters).filter(
419-
(value) => Array.isArray(value) && value.length !== 0
419+
(value) => Array.isArray(value)
420420
).length > 1 && (
421421
<div className="flex gap-2">
422422
{Object.entries(queryParams.filters).map(([category, values]) =>
@@ -467,8 +467,8 @@ const ListingComponent: React.FC<ListingProps> = ({
467467
tag: item.tags,
468468
formats: item.formats,
469469
footerContent: [
470-
{ icon: '', label: 'Sectors' },
471-
{ icon: '', label: 'Published by' },
470+
{ icon: `/Sectors/${item.sectors[0]}.svg`, label: 'Sectors' },
471+
{ icon: '/fallback.svg', label: 'Published by' },
472472
],
473473
};
474474

0 commit comments

Comments
 (0)