Skip to content

Commit

Permalink
fix: changed styles for disabled ads currency
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed Jun 12, 2023
1 parent 8936cb5 commit c1e68b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/p2p/src/components/my-ads/my-ads-row-renderer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const MyAdsRowRenderer = observer(({ row: advert }) => {
});

const ad_pause_color = general_store.is_listed && !general_store.is_barred ? 'general' : 'less-prominent';
const advert_active_color =
general_store.is_listed && !general_store.is_barred ? 'profit-success' : 'less-prominent';
const icon_disabled_color =
(!general_store.is_listed || general_store.is_barred || !is_advert_active) && 'disabled';
const is_activate_ad_disabled = floating_rate_store.reached_target_date && enable_action_point;
Expand Down Expand Up @@ -144,7 +146,7 @@ const MyAdsRowRenderer = observer(({ row: advert }) => {
)}
</div>
<div className='p2p-my-ads__table-row-details'>
<Text color='profit-success' line_height='m' size='xxs'>
<Text color={advert_active_color} line_height='m' size='xxs'>
{`${formatMoney(account_currency, amount_dealt, true)}`} {account_currency}&nbsp;
{is_buy_advert ? localize('Bought') : localize('Sold')}
</Text>
Expand Down

0 comments on commit c1e68b8

Please sign in to comment.