about to add last couple changes

This commit is contained in:
Anthony 2021-08-12 17:44:44 +02:00
parent 9cb49ddb47
commit a7d7a8c84b
No known key found for this signature in database
GPG key ID: C386D3C93D50E356
4 changed files with 29 additions and 10 deletions

View file

@ -88,7 +88,7 @@ const WalletBalance = (props: Props) => {
label={
transaction.channel_claim_id === transaction.source_claim_id
? 'Channel Page'
: 'File Page'
: 'Content Page'
}
button="link"
/>
@ -143,7 +143,7 @@ const WalletBalance = (props: Props) => {
label={
transaction.channel_claim_id === transaction.source_claim_id
? 'Channel Page'
: 'File Page'
: 'Content Page'
}
button="link"
/>

View file

@ -6,6 +6,7 @@ import Button from 'component/button';
import Card from 'component/common/card';
import Icon from 'component/common/icon';
import I18nMessage from 'component/i18nMessage';
import Plastic from 'react-plastic';
type Props = {
totalTippedAmount: number,
@ -20,6 +21,15 @@ const WalletBalance = (props: Props) => {
transactions,
} = props;
// let cardDetails = {
// brand: card.brand,
// expiryYear: card.exp_year,
// expiryMonth: card.exp_month,
// lastFour: card.last4,
// topOfDisplay: topOfDisplay,
// bottomOfDisplay: bottomOfDisplay,
// };
// const [detailsExpanded, setDetailsExpanded] = React.useState(false);
const [totalCreatorsSupported, setTotalCreatorsSupported] = React.useState(false);
@ -40,16 +50,18 @@ const WalletBalance = (props: Props) => {
return (
<>{<Card
title={<><Icon size="18" icon={ICONS.FINANCE} />{totalTippedAmount} USD</>}
subtitle={
<I18nMessage>
The total amount you have tipped to different creators
</I18nMessage>
subtitle={ 1 == 2 && <h2>Hello</h2>
// <Plastic
// type={userCardDetails.brand}
// name={userCardDetails.topOfDisplay + ' ' + userCardDetails.bottomOfDisplay}
// expiry={userCardDetails.expiryMonth + '/' + userCardDetails.expiryYear}
// number={'____________' + userCardDetails.lastFour}
// />
}
actions={
<>
<h2 className="section__title--small">
{transactions && transactions.length} Total Tips
{(transactions && transactions.length) || 0} Total Tips
</h2>
<h2 className="section__title--small">

View file

@ -125,7 +125,7 @@ const WalletBalance = (props: Props) => {
label={
transaction.channel_claim_id === transaction.source_claim_id
? 'Channel Page'
: 'File Page'
: 'Content Page'
}
button="link"
/>

View file

@ -265,12 +265,19 @@ class StripeAccountConnection extends React.Component<Props, State> {
</div>
}
actions={
<>{ 1 == 2 && <Button
button="primary"
label={__('View Transactions')}
icon={ICONS.SETTINGS}
navigate={`/$/${PAGES.WALLET}?tab=account-history`}
style={{marginRight: '10px'}}
/> }
<Button
button="primary"
label={__('View Transactions')}
icon={ICONS.SETTINGS}
navigate={`/$/${PAGES.WALLET}?tab=account-history`}
/>
/></>
}
/>
<br />