remove unused code in account
This commit is contained in:
parent
7685d25006
commit
ca80e40cf4
2 changed files with 0 additions and 33 deletions
|
@ -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'}
|
||||||
|
|
|
@ -230,7 +230,6 @@ const WalletPage = (props: Props) => {
|
||||||
</Page>
|
</Page>
|
||||||
);
|
);
|
||||||
// @endif
|
// @endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default WalletPage;
|
export default WalletPage;
|
||||||
|
|
Loading…
Reference in a new issue