|
|
@@ -1,8 +1,46 @@ |
|
|
|
import { IonContent, IonPage } from '@ionic/react'; |
|
|
|
import { ReactComponent as CogIcon } from '../../assets/svg/cog-outline.svg'; |
|
|
|
import { ReactComponent as CashIcon } from '../../assets/svg/cash-outline.svg'; |
|
|
|
import { ReactComponent as LineChartIcon } from '../../assets/svg/line-chart.svg'; |
|
|
|
import styles from './accounts.module.scss'; |
|
|
|
import { InvoiceCard } from '../../components/passbook/invoice-card/invoice'; |
|
|
|
|
|
|
|
const sampleInvoiceData = [{ |
|
|
|
invoice: { |
|
|
|
id: '2021-22/50', |
|
|
|
date: new Date(), |
|
|
|
status: 'due', |
|
|
|
dateOfPayment: new Date(), |
|
|
|
}, |
|
|
|
client: { |
|
|
|
name: 'Swasti', |
|
|
|
logo: 'https://cais.usc.edu/wp-content/uploads/2019/08/swasti-logo-2.23.png', |
|
|
|
project: { |
|
|
|
name: 'DiceFlow', |
|
|
|
contract: { |
|
|
|
name: 'Retainer contract', |
|
|
|
amount: 500000, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
invoice: { |
|
|
|
id: '2021-22/51', |
|
|
|
date: new Date(), |
|
|
|
status: 'paid', |
|
|
|
dateOfPayment: new Date(), |
|
|
|
}, |
|
|
|
client: { |
|
|
|
name: 'TechM', |
|
|
|
logo: 'https://files.techmahindra.com/static/img/brandkit/logo/Logo-True-Colors-original.png', |
|
|
|
project: { |
|
|
|
name: 'Telecom Italia', |
|
|
|
contract: { |
|
|
|
name: 'Phase 1', |
|
|
|
amount: 200000, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
|
|
|
|
const Accounts: React.FC = () => { |
|
|
|
return ( |
|
|
@@ -57,15 +95,21 @@ const Accounts: React.FC = () => { |
|
|
|
</ul> |
|
|
|
</section> |
|
|
|
|
|
|
|
<section className={styles.allTransacations}> |
|
|
|
<div className={styles.card}> |
|
|
|
<header> |
|
|
|
<h5> Pending Invoices </h5> |
|
|
|
<a> See All </a> |
|
|
|
</header> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
|
|
|
|
<div className={styles.allTransactionsContainer}> |
|
|
|
<section className={styles.allTransactions}> |
|
|
|
<div className={styles.transactionCard}> |
|
|
|
<header> |
|
|
|
<h5> Pending Invoices </h5> |
|
|
|
<a> See All </a> |
|
|
|
</header> |
|
|
|
|
|
|
|
{sampleInvoiceData.map((invoice, key) => { |
|
|
|
return <InvoiceCard key={key} invoice={invoice.invoice} client={invoice.client} /> |
|
|
|
})} |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
|
|
|
|
</IonContent> |
|
|
|
</IonPage> |
|
|
|
); |
|
|
|