Calculation/Settings: move btnCreateKP & linkDownloadKp elements
This commit is contained in:
parent
9a7e074863
commit
78c2446945
@ -8,5 +8,4 @@ export const rows: FormTabRows = [
|
||||
[['cbxInsurance', 'cbxRegistrationQuote', 'cbxTechnicalCardQuote']],
|
||||
[['cbxNSIB', 'cbxQuoteRedemptionGraph', 'cbxShowFinGAP']],
|
||||
[['tbxQuoteName', 'radioQuoteContactGender'], { gridTemplateColumns: ['1fr', '2fr 1fr'] }],
|
||||
[['btnCreateKP', 'linkDownloadKp'], { gridTemplateColumns: ['1fr', '2fr 1fr'] }],
|
||||
];
|
||||
|
||||
@ -9,9 +9,17 @@ export const mainRows: FormTabRows = [
|
||||
[['cbxRecalcWithRevision'], defaultRowStyle],
|
||||
[['selectQuote'], defaultRowStyle],
|
||||
[
|
||||
['btnCalculate', 'btnCreateKPMini'],
|
||||
['btnCalculate'],
|
||||
{
|
||||
gridTemplateColumns: ['1fr 0.15fr'],
|
||||
gridTemplateColumns: '1fr',
|
||||
marginBottom: ['5px'],
|
||||
},
|
||||
],
|
||||
[
|
||||
['btnCreateKP', 'linkDownloadKp'],
|
||||
{
|
||||
gap: [0, '10px'],
|
||||
gridTemplateColumns: ['1fr', '1fr 1fr'],
|
||||
},
|
||||
],
|
||||
];
|
||||
@ -24,9 +32,17 @@ export const unlimitedMainRows: FormTabRows = [
|
||||
[['cbxRecalcWithRevision'], defaultRowStyle],
|
||||
[['selectQuote'], defaultRowStyle],
|
||||
[
|
||||
['btnCalculate', 'btnCreateKPMini'],
|
||||
['btnCalculate'],
|
||||
{
|
||||
gridTemplateColumns: ['1fr 0.15fr'],
|
||||
gridTemplateColumns: '1fr',
|
||||
marginBottom: ['5px'],
|
||||
},
|
||||
],
|
||||
[
|
||||
['btnCreateKP', 'linkDownloadKp'],
|
||||
{
|
||||
gap: [0, '10px'],
|
||||
gridTemplateColumns: ['1fr', '1fr 1fr'],
|
||||
},
|
||||
],
|
||||
];
|
||||
|
||||
@ -20,9 +20,8 @@ export function buildLink<T>(
|
||||
|
||||
return (
|
||||
<Component
|
||||
status={status}
|
||||
href={value}
|
||||
disabled={!value}
|
||||
href={value || undefined}
|
||||
disabled={!value || status === 'Disabled'}
|
||||
loading={status === 'Loading'}
|
||||
{...props}
|
||||
/>
|
||||
|
||||
@ -504,7 +504,7 @@ const props: Partial<ElementsProps> = {
|
||||
width: '100%',
|
||||
},
|
||||
},
|
||||
linkDownloadKp: { children: 'Скачать КП', icon: <DownloadOutlined /> },
|
||||
linkDownloadKp: { children: 'Скачать КП', icon: <DownloadOutlined />, type: 'primary' },
|
||||
tbxMileage: {
|
||||
min: 0,
|
||||
step: 100,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user