Skip to content

Commit

Permalink
chore: replace contract card
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadtaimoor-deriv committed Jun 6, 2024
1 parent 2b154a3 commit cbe7efc
Showing 1 changed file with 2 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import DealCancellation from 'AppV2/Components/DealCancellation/deal-cancellatio
import { hasContractStarted, isForwardStarting, isMultiplierContract, isOpen, isValidToCancel } from '@deriv/shared';
import classNames from 'classnames';
import ContractDetailsFooter from 'AppV2/Components/ContractDetailsFooter';
import { ContractCard } from 'AppV2/Components/ContractCard';

const ContractDetails = observer(() => {
const { contract_info, is_loading } = useContractDetails();
Expand Down Expand Up @@ -42,28 +43,7 @@ const ContractDetails = observer(() => {
'contract-details--one-button': should_show_sell && !show_cancel_button,
})}
>
{/* TODO: remove temp contract card */}
<div className='contract-card'>
<div className='row first-row'>
<div className='title'>
<Text size='sm'>Accumulators</Text>
</div>
</div>
<div className='row'>
<CaptionText>Volatility 75 Index</CaptionText>
<CaptionText size='sm'>10.00 USD</CaptionText>
</div>
<div className='row last-row'>
<div className='column'>
<Text size='sm'>2/150 ticks</Text>
</div>
<div className='column'>
<Text size='sm' className='red'>
-1.00 USD
</Text>
</div>
</div>
</div>
<ContractCard contractInfo={contract_info} />
{/* END OF CONTRACT CARD */}
<div className='placeholder'>
<ChartPlaceholder />
Expand Down

0 comments on commit cbe7efc

Please sign in to comment.