remove unused code in account

This commit is contained in:
Anthony 2021-08-13 18:29:21 +02:00
parent 7685d25006
commit ca80e40cf4
No known key found for this signature in database
GPG key ID: C386D3C93D50E356
2 changed files with 0 additions and 33 deletions

View file

@ -2,16 +2,7 @@
import React from 'react'; import React from 'react';
import Button from 'component/button'; import Button from 'component/button';
import Card from 'component/common/card'; import Card from 'component/common/card';
import { Lbryio } from 'lbryinc';
import moment from 'moment'; 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 = { type Props = {
accountDetails: any, accountDetails: any,
@ -34,29 +25,6 @@ const WalletBalance = (props: Props) => {
accountTransactions.length = 10; 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 ( return (
<><Card <><Card
title={'Tip History'} title={'Tip History'}

View file

@ -230,7 +230,6 @@ const WalletPage = (props: Props) => {
</Page> </Page>
); );
// @endif // @endif
}; };
export default WalletPage; export default WalletPage;