From e44af92f126c94b2f681c5838c9d48a2bf869f7f Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Fri, 25 Sep 2020 07:01:25 -0700 Subject: [PATCH] feat(sweep): Adding token sweeping to wallet --- gatsby-config.js | 3 ++- package-lock.json | 8 ++++++++ package.json | 1 + src/gatsby-ipfs-web-wallet/components/menu-components.js | 7 +++++++ src/html.js | 3 +++ 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/gatsby-config.js b/gatsby-config.js index 697f8f3..b5b109f 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -14,6 +14,7 @@ module.exports = { options: { modules: ['bch-wallet-plugin-postoffice'] } - } + }, + 'gatsby-plugin-bch-sweep' ] } diff --git a/package-lock.json b/package-lock.json index 06eb145..d0b9f36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22276,6 +22276,14 @@ } } }, + "gatsby-plugin-bch-sweep": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/gatsby-plugin-bch-sweep/-/gatsby-plugin-bch-sweep-1.2.2.tgz", + "integrity": "sha512-s4xSKqFuEudYX+FcECMVTd9Soo98eOYbsF0w5HQLrNIJv8Uk/xBfTb8vkOikm03HrcOZIrbVm7+hFZoUb0WN9Q==", + "requires": { + "adminlte-2-react": "^0.1.27" + } + }, "gatsby-plugin-compile-es6-packages": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/gatsby-plugin-compile-es6-packages/-/gatsby-plugin-compile-es6-packages-2.1.0.tgz", diff --git a/package.json b/package.json index 38a4df7..5e88cd3 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "bch-wallet-plugin-postoffice": "Permissionless-Software-Foundation/bch-wallet-plugin-postoffice#ct-unstable", "gatsby": "^2.23.7", "gatsby-ipfs-web-wallet": "^1.9.18", + "gatsby-plugin-bch-sweep": "^1.2.2", "gatsby-plugin-compile-es6-packages": "^2.1.0" }, "repository": { diff --git a/src/gatsby-ipfs-web-wallet/components/menu-components.js b/src/gatsby-ipfs-web-wallet/components/menu-components.js index f11129e..8649971 100644 --- a/src/gatsby-ipfs-web-wallet/components/menu-components.js +++ b/src/gatsby-ipfs-web-wallet/components/menu-components.js @@ -9,10 +9,17 @@ import React from 'react' import { Sidebar } from 'adminlte-2-react' import About from '../../about' +import Sweep from 'gatsby-plugin-bch-sweep/src/components/sweep' const { Item } = Sidebar const MenuComponents = [ + { + key: 'Sweep', + // component: <>

test

, + component: , + menuItem: + }, { key: 'About', component: , diff --git a/src/html.js b/src/html.js index f8457cd..8f6b7c8 100644 --- a/src/html.js +++ b/src/html.js @@ -18,6 +18,9 @@ export default function HTML (props) { {/* minimal-slp-wallet-web */}