fix(explorer): fix display of amends with sizedelta
This commit is contained in:
parent
19fb406d49
commit
dac1ed19a4
@ -175,6 +175,7 @@ describe('Amend order details', () => {
|
|||||||
|
|
||||||
const res = renderExistingAmend('123', 1, amend);
|
const res = renderExistingAmend('123', 1, amend);
|
||||||
expect(await res.findByText('New size')).toBeInTheDocument();
|
expect(await res.findByText('New size')).toBeInTheDocument();
|
||||||
|
expect(await res.findByText('Size ±')).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Renders Reference if provided', async () => {
|
it('Renders Reference if provided', async () => {
|
||||||
|
@ -82,7 +82,7 @@ const AmendOrderDetails = ({ id, version, amend }: AmendOrderDetailsProps) => {
|
|||||||
{amend.sizeDelta && amend.sizeDelta !== '0' ? (
|
{amend.sizeDelta && amend.sizeDelta !== '0' ? (
|
||||||
<div className="mb-12 md:mb-0">
|
<div className="mb-12 md:mb-0">
|
||||||
<h2 className="text-dark mb-4 text-2xl font-bold">
|
<h2 className="text-dark mb-4 text-2xl font-bold">
|
||||||
{t('New size')}
|
{t('Size ±')}
|
||||||
</h2>
|
</h2>
|
||||||
<h5
|
<h5
|
||||||
className={`mb-0 text-lg font-medium capitalize text-gray-500 ${getSideDeltaColour(
|
className={`mb-0 text-lg font-medium capitalize text-gray-500 ${getSideDeltaColour(
|
||||||
@ -93,6 +93,16 @@ const AmendOrderDetails = ({ id, version, amend }: AmendOrderDetailsProps) => {
|
|||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
{o && (
|
||||||
|
<div className="">
|
||||||
|
<h2 className="text-dark mb-4 text-2xl font-bold">
|
||||||
|
{t('New size')}
|
||||||
|
</h2>
|
||||||
|
<h5 className="mb-0 text-lg font-medium text-gray-500">
|
||||||
|
{o ? o.size : null}
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{amend.price && amend.price !== '0' ? (
|
{amend.price && amend.price !== '0' ? (
|
||||||
<div className="">
|
<div className="">
|
||||||
|
Loading…
Reference in New Issue
Block a user