From 60cac45e89204b6d2d1573fdc08863b654084e0f Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Mon, 2 Aug 2021 13:18:46 +0300 Subject: [PATCH] Adding fees to fixed pricing page (#758) * Adding fess to fixed pricing page * Adding tooltips to fixed price content * Styling: Text align left * create pricing styling updates * remove console.log Co-authored-by: Matthias Kretschmann --- content/price.json | 6 ++- src/components/atoms/Alert.module.css | 3 +- .../Pricing/FormPricing/Dynamic.tsx | 2 +- .../Pricing/FormPricing/Fees.module.css | 8 +++- .../AssetContent/Pricing/FormPricing/Fees.tsx | 40 ++++++++++--------- .../Pricing/FormPricing/Fixed.tsx | 2 + .../Pricing/FormPricing/Price.module.css | 22 +++++----- .../Pricing/FormPricing/Price.tsx | 8 ++-- .../organisms/AssetContent/Pricing/index.tsx | 6 ++- 9 files changed, 58 insertions(+), 39 deletions(-) diff --git a/content/price.json b/content/price.json index 517d74a75..a6812290d 100644 --- a/content/price.json +++ b/content/price.json @@ -10,7 +10,11 @@ }, "fixed": { "title": "Fixed", - "info": "Set your price for accessing this data set. The datatoken for this data set will be worth the entered amount of OCEAN." + "info": "Set your price for accessing this data set. The datatoken for this data set will be worth the entered amount of OCEAN.", + "tooltips": { + "communityFee": "Explain community fee...", + "marketplaceFee": "Explain marketplace fee..." + } }, "dynamic": { "title": "Dynamic", diff --git a/src/components/atoms/Alert.module.css b/src/components/atoms/Alert.module.css index 1a42a711e..e5e6da01e 100644 --- a/src/components/atoms/Alert.module.css +++ b/src/components/atoms/Alert.module.css @@ -45,7 +45,8 @@ margin-bottom: 0; } -.action { +.action, +button.action { margin-top: calc(var(--spacer) / 2); } diff --git a/src/components/organisms/AssetContent/Pricing/FormPricing/Dynamic.tsx b/src/components/organisms/AssetContent/Pricing/FormPricing/Dynamic.tsx index 3c53aca63..6cec17fcd 100644 --- a/src/components/organisms/AssetContent/Pricing/FormPricing/Dynamic.tsx +++ b/src/components/organisms/AssetContent/Pricing/FormPricing/Dynamic.tsx @@ -112,7 +112,7 @@ export default function Dynamic({ /> - +