feat: sales pdf preview.

This commit is contained in:
elforjani3
2021-08-18 14:45:54 +02:00
parent a7b0f1a8d2
commit 7234bc4757
29 changed files with 664 additions and 20 deletions

View File

@@ -58,15 +58,16 @@ export function ActionsMenu({
onDelete,
onDrawer,
onConvert,
onViewDetails,
onPrint,
},
}) {
return (
<Menu>
<MenuItem
icon={<Icon icon="reader-18" />}
text={intl.get('view_details')}
onClick={safeCallback(onViewDetails, original)}
/>
<MenuDivider />
<MenuItem
@@ -119,6 +120,11 @@ export function ActionsMenu({
text={intl.get('estimate_paper')}
onClick={safeCallback(onDrawer, original)}
/>
<MenuItem
icon={<Icon icon={'print-16'} iconSize={16} />}
text={intl.get('print')}
onClick={safeCallback(onPrint, original)}
/>
<MenuItem
text={intl.get('delete_estimate')}
intent={Intent.DANGER}
@@ -149,8 +155,6 @@ function ActionsCell(props) {
}
export function useEstiamtesTableColumns() {
return React.useMemo(
() => [
{
@@ -204,7 +208,7 @@ export function useEstiamtesTableColumns() {
accessor: 'reference',
width: 90,
className: 'reference',
}
},
],
[],
);