mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
// @ts-nocheck
|
|
import { FInputGroup, FSwitch, Group, Stack } from '@/components';
|
|
import { CLASSES } from '@/constants';
|
|
import { Classes } from '@blueprintjs/core';
|
|
import { fieldsGroups } from './constants';
|
|
|
|
export function EstimateCustomizeContentFields() {
|
|
return (
|
|
<Stack
|
|
spacing={10}
|
|
style={{ padding: 20, paddingBottom: 40, flex: '1 1 auto' }}
|
|
>
|
|
<Stack spacing={10}>
|
|
<h3 style={{ fontWeight: 600 }}>Estimate Content</h3>
|
|
<p className={Classes.TEXT_MUTED}>
|
|
Customize your estimate by editing the items label or hiding some
|
|
items to match your needs.
|
|
</p>
|
|
</Stack>
|
|
|
|
<Stack>
|
|
{fieldsGroups.map((group) => (
|
|
<>
|
|
<h4 className={CLASSES.TEXT_MUTED} style={{ fontWeight: 600 }}>
|
|
{group.label}
|
|
</h4>
|
|
<Stack spacing={14}>
|
|
{group.fields.map((item, index) => (
|
|
<Group spacing={14} position={'apart'} key={index}>
|
|
<FSwitch name={item.enableKey} label={item.label} fastField />
|
|
{item.labelKey && (
|
|
<FInputGroup
|
|
name={item.labelKey}
|
|
style={{ maxWidth: 150 }}
|
|
fastField
|
|
/>
|
|
)}
|
|
</Group>
|
|
))}
|
|
</Stack>
|
|
</>
|
|
))}
|
|
</Stack>
|
|
</Stack>
|
|
);
|
|
}
|