Skip to content

Commit

Permalink
fix: fix for contract detail pop up
Browse files Browse the repository at this point in the history
  • Loading branch information
meenakshi-deriv committed Aug 6, 2024
1 parent 4ef9b9d commit ae82eb5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
36 changes: 26 additions & 10 deletions src/javascript/app/pages/trade/purchase/contract-details.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable import/no-unresolved */
import React, { useEffect, useState } from 'react';
import { Button, Skeleton, Text } from '@deriv-com/quill-ui';
import { LabelPairedArrowLeftMdRegularIcon } from '@deriv/quill-icons/LabelPaired';
import { LabelPairedArrowLeftMdRegularIcon, LabelPairedXmarkMdRegularIcon } from '@deriv/quill-icons/LabelPaired';
import ContractTable from './contract-table';
import Portal from '../../portal';
import purchaseManager from '../../../common/purchase_manager';
Expand Down Expand Up @@ -46,7 +46,20 @@ const AuditSection = ({ data }) => {
{localize('Audit page')}
</Text>
</div>
<Button variant='tertiary' size='lg' />
<Button
variant='tertiary'
color='black'
size='lg'
onClick={() => {
purchaseManager.set({
showContractDetailsPopup: false,
});
}}
icon={<LabelPairedXmarkMdRegularIcon
color='black'

/>}
/>
</div>
<div className='popup-scroller'>
<div className='body-box'>
Expand Down Expand Up @@ -122,23 +135,26 @@ const AuditSection = ({ data }) => {
const DetailsSection = ({ data }) => (
<>
<div className='header-box'>

<div className='title-box'>
<Text size='md' bold>
{localize('Contract Details')}
</Text>
</div>
<Button
variant='tertiary'
size='lg'
icon={<LabelPairedArrowLeftMdRegularIcon />}
color='black'
size='lg'
onClick={() => {
purchaseManager.set({
showContractDetailsPopup: false,
});
}}
icon={<LabelPairedXmarkMdRegularIcon
color='black'

/>}
/>
<div className='title-box'>
<Text size='md' bold>
{localize('Contract Details')}
</Text>
</div>
<div className='spacer' />
</div>
<div className='popup-scroller'>
<div className='body-box'>
Expand Down
1 change: 1 addition & 0 deletions src/sass/_common/reskin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ div#contract-injection-container {
}
.header-box {
display: flex;
max-width: 940px;
width: 100%;
height: 48px;
background: var(--core-color-opacity-white-800);
Expand Down

0 comments on commit ae82eb5

Please sign in to comment.