From ca80e40cf41d4552a9f0ae0ff7ca968ade920955 Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 13 Aug 2021 18:29:21 +0200 Subject: [PATCH] remove unused code in account --- .../walletFiatAccountHistory/view.jsx | 32 ------------------- ui/page/wallet/view.jsx | 1 - 2 files changed, 33 deletions(-) diff --git a/ui/component/walletFiatAccountHistory/view.jsx b/ui/component/walletFiatAccountHistory/view.jsx index a69dac7eb..1bac35b8b 100644 --- a/ui/component/walletFiatAccountHistory/view.jsx +++ b/ui/component/walletFiatAccountHistory/view.jsx @@ -2,16 +2,7 @@ import React from 'react'; import Button from 'component/button'; import Card from 'component/common/card'; -import { Lbryio } from 'lbryinc'; import moment from 'moment'; -import { STRIPE_PUBLIC_KEY } from 'config'; - -let stripeEnvironment = 'test'; -// if the key contains pk_live it's a live key -// update the environment for the calls to the backend to indicate which environment to hit -if (STRIPE_PUBLIC_KEY.indexOf('pk_live') > -1) { - stripeEnvironment = 'live'; -} type Props = { accountDetails: any, @@ -34,29 +25,6 @@ const WalletBalance = (props: Props) => { accountTransactions.length = 10; } - // const [detailsExpanded, setDetailsExpanded] = React.useState(false); - const [accountStatusResponse, setAccountStatusResponse] = React.useState(); - const [subscriptions, setSubscriptions] = React.useState([]); - - function getAccountStatus() { - return Lbryio.call( - 'account', - 'status', - { - environment: stripeEnvironment, - }, - 'post' - ); - } - - React.useEffect(() => { - (async function() { - const response = await getAccountStatus(); - - setAccountStatusResponse(response); - })(); - }, []); - return ( <> { ); // @endif - }; export default WalletPage;