mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import { Button, Intent } from '@blueprintjs/core';
|
|
import { useHistory } from 'react-router-dom';
|
|
import { EmptyStatus } from '@/components';
|
|
import { Can, FormattedMessage as T } from '@/components';
|
|
import { PaymentReceiveAction, AbilitySubject } from '@/constants/abilityOption';
|
|
|
|
export default function PaymentsReceivedEmptyStatus() {
|
|
const history = useHistory();
|
|
|
|
return (
|
|
<EmptyStatus
|
|
title={<T id={'the_organization_doesn_t_receive_money_yet'} />}
|
|
description={
|
|
<p>
|
|
<T
|
|
id={'receiving_customer_payments_is_one_pleasant_accounting_tasks'}
|
|
/>
|
|
</p>
|
|
}
|
|
action={
|
|
<>
|
|
<Can
|
|
I={PaymentReceiveAction.Create}
|
|
a={AbilitySubject.PaymentReceive}
|
|
>
|
|
<Button
|
|
intent={Intent.PRIMARY}
|
|
large={true}
|
|
onClick={() => {
|
|
history.push('/payment-received/new');
|
|
}}
|
|
>
|
|
<T id={'new_payment_received'} />
|
|
</Button>
|
|
|
|
<Button intent={Intent.NONE} large={true}>
|
|
<T id={'learn_more'} />
|
|
</Button>
|
|
</Can>
|
|
</>
|
|
}
|
|
/>
|
|
);
|
|
}
|