From 461efb1a6580274eab6d3443273c30db5df9bc89 Mon Sep 17 00:00:00 2001 From: Shan Date: Wed, 13 Dec 2023 12:29:52 +0530 Subject: [PATCH 1/6] custom component to handle ivalid image --- .../src/components/AuctionCard.vue | 5 +-- .../src/components/AuctionResultsCard.vue | 11 +++--- .../src/components/CustomImage.vue | 36 +++++++++++++++++++ .../src/components/ImageCarousel.vue | 6 +++- .../src/components/ImageGallery.vue | 13 +++---- 5 files changed, 57 insertions(+), 14 deletions(-) create mode 100644 frontend/marketplace/src/components/CustomImage.vue diff --git a/frontend/marketplace/src/components/AuctionCard.vue b/frontend/marketplace/src/components/AuctionCard.vue index 41fa6488c..89b96fc5c 100644 --- a/frontend/marketplace/src/components/AuctionCard.vue +++ b/frontend/marketplace/src/components/AuctionCard.vue @@ -4,6 +4,7 @@ import { convertIPFStoHTTPS } from "@/utils/utils"; import auctionCard from "@/assets/auctionCard.png"; import { formatDenom } from "@/utils/wallet-utils"; import { onMounted, ref } from "vue"; +import CustomImage from "@/components/CustomImage.vue"; export interface AuctionCardProps { auctionData: any; } @@ -16,12 +17,12 @@ onMounted(async () => {