Files
bigcapital/packages/webapp/src/containers/Sales/Invoices/InvoiceCustomize/InvoiceCutomizeContentFields.tsx
2024-09-09 21:07:22 +02:00

38 lines
1.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Classes } from '@blueprintjs/core';
import { FInputGroup, FSwitch, Group, Stack } from '@/components';
const items = [
{ key: 'dueAmount', label: 'Due Amount' },
{ key: 'billedTo', label: 'Billed To' },
{ key: 'balanceDue', label: 'Balance Due' },
{ key: 'termsConditions', label: 'Terms & Conditions' },
];
export function InvoiceCustomizeContentFields() {
return (
<Stack style={{ padding: 20, flex: '1 1 auto' }}>
<Stack>
<h2>General Branding</h2>
<p className={Classes.TEXT_MUTED}>
Set your invoice details to be automatically applied every timeyou
create a new invoice.
</p>
</Stack>
<h1>Header</h1>
<Stack>
{items.map((item, index) => (
<Group position={'apart'} key={index}>
<FSwitch name={`item.${item.key}.enabled`} label={item.label} />
<FInputGroup
name={'item.dueAmount.text'}
placeholder={item.label}
/>
</Group>
))}
</Stack>
</Stack>
);
}