From 410b34f319dfb65f95725f5396bf037cd0f1bac8 Mon Sep 17 00:00:00 2001 From: Shan Date: Fri, 9 Feb 2024 01:46:02 +0530 Subject: [PATCH 1/3] listing fee tooltip --- .../marketplace/src/assets/questionIcon.svg | 5 ++++ .../marketplace/src/components/BuyCredits.vue | 25 ++++++++++++++----- 2 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 frontend/marketplace/src/assets/questionIcon.svg diff --git a/frontend/marketplace/src/assets/questionIcon.svg b/frontend/marketplace/src/assets/questionIcon.svg new file mode 100644 index 00000000..4e4593a6 --- /dev/null +++ b/frontend/marketplace/src/assets/questionIcon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/frontend/marketplace/src/components/BuyCredits.vue b/frontend/marketplace/src/components/BuyCredits.vue index 9f7bd631..5875f98e 100644 --- a/frontend/marketplace/src/components/BuyCredits.vue +++ b/frontend/marketplace/src/components/BuyCredits.vue @@ -226,9 +226,15 @@ const handleCardPayment = async (retirererName: string) => {
- + @@ -243,9 +249,16 @@ const handleCardPayment = async (retirererName: string) => { />
-

- Cost {{ pricePerCredit * amount }} ${{ coinFormatted }} -

+
+ Cost + {{ pricePerCredit * amount }} ${{ coinFormatted }} +

+ +

+
Date: Wed, 14 Feb 2024 11:37:15 +0530 Subject: [PATCH 2/3] custom tooltip component --- .../marketplace/src/components/BuyCredits.vue | 22 +++++++++---------- .../marketplace/src/components/ui/Tooltip.vue | 19 ++++++++++++++++ 2 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 frontend/marketplace/src/components/ui/Tooltip.vue diff --git a/frontend/marketplace/src/components/BuyCredits.vue b/frontend/marketplace/src/components/BuyCredits.vue index 5875f98e..ded80f78 100644 --- a/frontend/marketplace/src/components/BuyCredits.vue +++ b/frontend/marketplace/src/components/BuyCredits.vue @@ -18,6 +18,7 @@ import { useFetcher, authHeader } from "@/utils/fetcher"; import { useAuth } from "@/stores/auth"; import { useWallet } from "@/stores/wallet"; import { useNotifyer } from "@/utils/notifyer"; +import Tooltip from "@/components/ui/Tooltip.vue"; export interface BuyCreditsProps { availableCredits: number; @@ -228,12 +229,10 @@ const handleCardPayment = async (retirererName: string) => {
Cost {{ pricePerCredit * amount }} ${{ coinFormatted }} -

- -

+
diff --git a/frontend/marketplace/src/components/ui/Tooltip.vue b/frontend/marketplace/src/components/ui/Tooltip.vue new file mode 100644 index 00000000..5f9562f1 --- /dev/null +++ b/frontend/marketplace/src/components/ui/Tooltip.vue @@ -0,0 +1,19 @@ + + + From 3eaaf8dbe89e887a7a8bbc8d930ef6e5051f931e Mon Sep 17 00:00:00 2001 From: Shan Date: Wed, 14 Feb 2024 21:45:59 +0530 Subject: [PATCH 3/3] review changes --- frontend/marketplace/src/components/BuyCredits.vue | 4 ++-- frontend/marketplace/src/components/ui/Tooltip.vue | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/marketplace/src/components/BuyCredits.vue b/frontend/marketplace/src/components/BuyCredits.vue index ded80f78..ae6c7e6f 100644 --- a/frontend/marketplace/src/components/BuyCredits.vue +++ b/frontend/marketplace/src/components/BuyCredits.vue @@ -231,7 +231,7 @@ const handleCardPayment = async (retirererName: string) => {

Cost

diff --git a/frontend/marketplace/src/components/ui/Tooltip.vue b/frontend/marketplace/src/components/ui/Tooltip.vue index 5f9562f1..45cf896b 100644 --- a/frontend/marketplace/src/components/ui/Tooltip.vue +++ b/frontend/marketplace/src/components/ui/Tooltip.vue @@ -1,13 +1,13 @@