Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-28216] Billing History View (UX Only) #6637

Merged
merged 10 commits into from
Oct 7, 2020
Merged
Next Next commit
Main card and no billing history view
  • Loading branch information
devinbinnie committed Oct 1, 2020
commit da6d638315d0091d459d6d8bccc449e9f84ee46a
50 changes: 50 additions & 0 deletions components/admin_console/billing/billing_history.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
.BillingHistory__card {
background-color: var(--sys-center-channel-bg);
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.08);
border-radius: 4px;
color: var(--sys-center-channel-color);
width: 100%;
height: '463px';
}

.BillingHistory__cardHeader {
padding: 28px 32px 24px 32px;
border-bottom: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
display: flex;
align-items: center;
}

.BillingHistory__cardHeaderText-top {
font-weight: 600;
font-size: 16px;
line-height: 24px;
}

.BillingHistory__cardHeaderText-bottom {
font-size: 14px;
line-height: 20px;
}

.BillingHistory__noHistory {
display: flex;
flex-direction: column;
align-items: center;
padding: 48px;
}

.BillingHistory__noHistory-message {
margin-top: 24px;
font-size: 14px;
line-height: 20px;
color: var(--sys-center-channel-color);
}

.BillingHistory__noHistory-link {
font-weight: 600;
font-size: 14px;
line-height: 14px;
color: var(--sys-button-bg);
margin-top: 20px;
margin-bottom: 12px;
}
50 changes: 48 additions & 2 deletions components/admin_console/billing/billing_history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,41 @@
// See LICENSE.txt for license information.

import React from 'react';
import {FormattedMessage} from 'react-intl';

import FormattedAdminHeader from 'components/widgets/admin_console/formatted_admin_header';
import noBillingHistoryGraphic from 'images/no_billing_history_graphic.svg';

import './billing_history.scss';

type Props = {

};

const noBillingHistorySection = (
<div className='BillingHistory__noHistory'>
<img
className='BillingHistory__noHistory-graphic'
src={noBillingHistoryGraphic}
/>
<div className='BillingHistory__noHistory-message'>
<FormattedMessage
id='admin.billing.history.noBillingHistory'
defaultMessage='In the future, this is where your billing history will show.'
/>
</div>
<a
href='http:https://www.google.com'
className='BillingHistory__noHistory-link'
>
<FormattedMessage
id='admin.billing.history.seeHowBillingWorks'
defaultMessage='See how billing works'
/>
</a>
</div>
);

const BillingHistory: React.FC<Props> = () => {
return (
<div className='wrapper--fixed BillingHistory'>
Expand All @@ -18,8 +46,26 @@ const BillingHistory: React.FC<Props> = () => {
/>
<div className='admin-console__wrapper'>
<div className='admin-console__content'>
<div style={{border: '1px solid #000', width: '100%', height: '463px'}}>
{'Billing History Table View'}
<div className='BillingHistory__card'>
<div className='BillingHistory__cardHeader'>
<div className='BillingHistory__cardHeaderText'>
<div className='BillingHistory__cardHeaderText-top'>
<FormattedMessage
id='admin.billing.history.transactions'
defaultMessage='Transactions'
/>
</div>
<div className='BillingHistory__cardHeaderText-bottom'>
<FormattedMessage
id='admin.billing.history.allPaymentsShowHere'
defaultMessage='All of your monthly payments will show here'
/>
</div>
</div>
</div>
<div className='BillingHistory__cardBody'>
{noBillingHistorySection}
</div>
</div>
</div>
</div>
Expand Down
Loading