|
@@ -1,7 +1,8 @@ |
|
|
import { IonContent, IonPage } from '@ionic/react'; |
|
|
|
|
|
|
|
|
import { IonButton, IonContent, IonDatetime, IonInput, IonPage } from '@ionic/react'; |
|
|
import { ReactComponent as CogIcon } from 'ionicons/dist/svg/cog-outline.svg'; |
|
|
import { ReactComponent as CogIcon } from 'ionicons/dist/svg/cog-outline.svg'; |
|
|
import { ReactComponent as LineChartIcon } from 'ionicons/dist/svg/stats-chart.svg'; |
|
|
import { ReactComponent as LineChartIcon } from 'ionicons/dist/svg/stats-chart.svg'; |
|
|
import styles from './accounts.module.scss'; |
|
|
import styles from './accounts.module.scss'; |
|
|
|
|
|
import itemCardStyles from '../../components/item-card/itemCard.module.scss'; |
|
|
import { ItemCard } from '../../components/item-card/itemCard'; |
|
|
import { ItemCard } from '../../components/item-card/itemCard'; |
|
|
import { format } from 'date-fns'; |
|
|
import { format } from 'date-fns'; |
|
|
|
|
|
|
|
@@ -42,6 +43,24 @@ const sampleInvoiceData = [{ |
|
|
}] |
|
|
}] |
|
|
|
|
|
|
|
|
const Accounts: React.FC = () => { |
|
|
const Accounts: React.FC = () => { |
|
|
|
|
|
const pendingInvoiceForm = |
|
|
|
|
|
<section className={itemCardStyles.form}> |
|
|
|
|
|
<div className={itemCardStyles.inputHolder}> |
|
|
|
|
|
<label> Payment Date </label> |
|
|
|
|
|
<IonDatetime mode={'ios'} placeholder={'DD/MM/YYYY'} displayFormat={'DD/MM/YYYY'}></IonDatetime> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div className={itemCardStyles.inputHolder}> |
|
|
|
|
|
<label> Reference No. </label> |
|
|
|
|
|
<IonInput placeholder={'Enter here'}></IonInput> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div className={itemCardStyles.buttonsHolder}> |
|
|
|
|
|
<IonButton fill={'outline'} color="dark" className={itemCardStyles.cancel} shape={'round'}> Cancel Invoice </IonButton> |
|
|
|
|
|
<IonButton fill={'solid'} className={itemCardStyles.approve + ' ' + itemCardStyles.disabled} shape={'round'}> Paid </IonButton> |
|
|
|
|
|
</div> |
|
|
|
|
|
</section> |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<IonPage> |
|
|
<IonPage> |
|
|
<IonContent> |
|
|
<IonContent> |
|
@@ -131,6 +150,7 @@ const Accounts: React.FC = () => { |
|
|
name: 'Invoice Amount', |
|
|
name: 'Invoice Amount', |
|
|
value: invoice.client.project.contract.amount |
|
|
value: invoice.client.project.contract.amount |
|
|
}]} |
|
|
}]} |
|
|
|
|
|
form={pendingInvoiceForm} |
|
|
/> |
|
|
/> |
|
|
})} |
|
|
})} |
|
|
</div> |
|
|
</div> |
|
|