fix: BIG-195 Allocate landed cost amount max number should be transaction remaining amount.

This commit is contained in:
a.bouhuolia
2021-12-30 12:30:02 +02:00
parent 81c81bd09f
commit 119e6fa216
5 changed files with 55 additions and 19 deletions

View File

@@ -1,6 +1,10 @@
import React from 'react';
import { Intent, Button, Classes } from '@blueprintjs/core';
import { FormattedMessage as T } from 'components';
import { Intent, Button } from '@blueprintjs/core';
import {
DialogFooter,
DialogFooterActions,
FormattedMessage as T,
} from 'components';
import { useFormikContext } from 'formik';
import { useAllocateLandedConstDialogContext } from './AllocateLandedCostDialogProvider';
@@ -21,21 +25,21 @@ function AllocateLandedCostFloatingActions({
};
return (
<div className={Classes.DIALOG_FOOTER}>
<div className={Classes.DIALOG_FOOTER_ACTIONS}>
<DialogFooter>
<DialogFooterActions alignment={'right'}>
<Button onClick={handleCancelBtnClick} style={{ minWidth: '85px' }}>
<T id={'cancel'} />
</Button>
<Button
intent={Intent.PRIMARY}
style={{ minWidth: '85px' }}
style={{ minWidth: '95px' }}
type="submit"
loading={isSubmitting}
>
{<T id={'save'} />}
</Button>
</div>
</div>
</DialogFooterActions>
</DialogFooter>
);
}