Skip to content

Commit

Permalink
fix: apply gradient style to all contracts (binary-com#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-deriv committed Jun 15, 2023
1 parent 7e20483 commit 2d0ba8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const PositionsDrawerCard = ({
const has_ended = !!getEndTime(contract_info);
const is_mobile = isMobile();
const contract_card_classname = classNames('dc-contract-card', {
'dc-contract-card--green': !is_accumulator && !is_multiplier && profit_loss > 0 && !result,
'dc-contract-card--red': !is_accumulator && !is_multiplier && profit_loss < 0 && !result,
'dc-contract-card--green': profit_loss > 0 && !result,
'dc-contract-card--red': profit_loss < 0 && !result,
});

const loader_el = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ const ContractDrawerCard = observer(
>
<div
className={classNames('dc-contract-card', {
'dc-contract-card--green': is_mobile && !is_multiplier && profit > 0 && !result,
'dc-contract-card--red': is_mobile && !is_multiplier && profit < 0 && !result,
'dc-contract-card--green': profit > 0 && !result,
'dc-contract-card--red': profit < 0 && !result,
'contract-card__market-closed--disabled': is_market_closed && should_hide_closed_overlay,
})}
ref={hover_ref}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ const PositionsModalCard = observer(
<React.Fragment>
<NavLink
className={classNames('dc-contract-card', {
'dc-contract-card--green': !is_multiplier && profit_loss > 0 && !result,
'dc-contract-card--red': !is_multiplier && profit_loss < 0 && !result,
'dc-contract-card--green': profit_loss > 0 && !result,
'dc-contract-card--red': profit_loss < 0 && !result,
})}
to={{
pathname: `/contract/${contract_info.contract_id}`,
Expand Down

0 comments on commit 2d0ba8a

Please sign in to comment.