From 66a8657e4b86b65cf15d7bdc37073c464ce76a3b Mon Sep 17 00:00:00 2001
From: Daniel Gonzalez
Date: Tue, 28 Jul 2020 00:36:14 -0400
Subject: [PATCH] feat(button): Added clear localstorage button
---
src/components/admin-lte/configure/index.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/components/admin-lte/configure/index.js b/src/components/admin-lte/configure/index.js
index c173eed..1e7d2c3 100644
--- a/src/components/admin-lte/configure/index.js
+++ b/src/components/admin-lte/configure/index.js
@@ -4,6 +4,7 @@ import { Content, Row, Col, Box, Inputs, Button } from 'adminlte-2-react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
// import BchWallet from 'minimal-slp-wallet'
import Servers from './servers'
+import { setWalletInfo } from '../../localWallet'
const { Text } = Inputs
const BchWallet =
@@ -66,6 +67,12 @@ class Configure extends React.Component {
FullStack.cash
+
@@ -118,6 +125,12 @@ class Configure extends React.Component {
)
}
+ // Clear localstorage info
+ handleClearLocalStorage () {
+ setWalletInfo({})
+ window.location.reload()
+ }
+
componentDidMount () {
_this.setJwt()
}