diff --git a/web/cashtab-components/README.md b/web/cashtab-components/README.md --- a/web/cashtab-components/README.md +++ b/web/cashtab-components/README.md @@ -1,6 +1,6 @@ # Cashtab React Components -Interact with the Cashtab wallet to support BCHA payments in web apps. Download the Cashtab extension [here](https://chrome.google.com/webstore/detail/cashtab/obldfcmebhllhjlhjbnghaipekcppeag) +Interact with the Cashtab wallet to support eCash payments in web apps. Download the Cashtab extension [here](https://chrome.google.com/webstore/detail/cashtab/obldfcmebhllhjlhjbnghaipekcppeag) This project is based on [badger-components-react](https://github.com/Bitcoin-com/badger-components-react) @@ -14,13 +14,13 @@ - [ ] Bip70-style invoices - [ ] Websocket monitoring of payment status -# Build on Bitcoin ABC (BCHA) +# Build on eCash (XEC) -A set of React components and helpers to integrate Bitcoin ABC (BCHA) and tokens into your app with ease. Integrates with the Cashtab wallet. +A set of React components and helpers to integrate eCash (XEC) and tokens into your app with ease. Integrates with the Cashtab wallet. ## Get Started -- [Homepage](https://bitcoinabc.org) +- [Homepage](https://e.cash/) - [Component Showcase](https://laughing-villani-8cfcaf.netlify.app/) - [Cashtab Extension](https://chrome.google.com/webstore/detail/cashtab/obldfcmebhllhjlhjbnghaipekcppeag) - [NPM page](https://www.npmjs.com/package/cashtab-components) diff --git a/web/cashtab-components/package.json b/web/cashtab-components/package.json --- a/web/cashtab-components/package.json +++ b/web/cashtab-components/package.json @@ -1,6 +1,6 @@ { "name": "cashtab-components", - "version": "0.0.4", + "version": "1.0.0", "description": "Integrate the Cashtab Wallet into your React app with ease.", "main": "dist/index", "typings": "dist/index", @@ -44,9 +44,11 @@ "keywords": [ "cashtab", "bitcoin abc", + "ecash", + "XEC", + "etoken", "web payments", "react component", - "BCHA", "cashtab button", "crypto payments", "crypto" diff --git a/web/cashtab-components/public/cashtab-components.png b/web/cashtab-components/public/cashtab-components.png index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@ { const price = number('Price', 0.001); const satoshis = price * 1e8; diff --git a/web/cashtab-components/src/hoc/CashtabBase/CashtabBase.tsx b/web/cashtab-components/src/hoc/CashtabBase/CashtabBase.tsx --- a/web/cashtab-components/src/hoc/CashtabBase/CashtabBase.tsx +++ b/web/cashtab-components/src/hoc/CashtabBase/CashtabBase.tsx @@ -185,7 +185,14 @@ text: 'CashTab', txInfo: { address: to, - value: satoshis ? satoshis! / 1e8 : amount, + value: satoshis + ? parseFloat( + ( + satoshis! * + 10 ** (-1 * Ticker.coinDecimals) + ).toFixed(2), + ) + : amount, }, }, '*', @@ -301,7 +308,6 @@ }; confirmCashTabProviderStatus = () => { - console.log(`confirmCashTabProviderStatus called`); const cashTabStatus = this.getCashTabProviderStatus(); if (cashTabStatus) { this.setState({ step: 'fresh' }); diff --git a/web/cashtab-components/src/images/12-bitcoin-cash-square-crop.svg b/web/cashtab-components/src/images/12-bitcoin-cash-square-crop.svg deleted file mode 100644 --- a/web/cashtab-components/src/images/12-bitcoin-cash-square-crop.svg +++ /dev/null @@ -1 +0,0 @@ -12-bitcoin-cash-square-crop \ No newline at end of file diff --git a/web/cashtab-components/src/images/bitcoin-cash-logo.svg b/web/cashtab-components/src/images/bitcoin-cash-logo.svg deleted file mode 100644 --- a/web/cashtab-components/src/images/bitcoin-cash-logo.svg +++ /dev/null @@ -1 +0,0 @@ -3-bitcoin-cash-logo-ot \ No newline at end of file diff --git a/web/cashtab-components/src/images/bitcoin-cash.svg b/web/cashtab-components/src/images/bitcoin-cash.svg deleted file mode 100644 --- a/web/cashtab-components/src/images/bitcoin-cash.svg +++ /dev/null @@ -1 +0,0 @@ -4-bitcoin-cash-logo-flag \ No newline at end of file diff --git a/web/cashtab-components/src/images/logo_primary.png b/web/cashtab-components/src/images/logo_primary.png new file mode 100644 index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@