Skip to content

Commit

Permalink
[WEBREL]/Mitra/[WEBREL-2753] remove crypto subheader (#15316)
Browse files Browse the repository at this point in the history
* fix: 🐛 remove crypto subhead

* fix: 🧪 fix failing test
  • Loading branch information
mitra-deriv authored and farabi-deriv committed May 23, 2024
1 parent 8611600 commit e9b8a6b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ describe('<CurrencySelector/>', () => {
expect(screen.getByRole('radio', { name: /us dollar \(usd\)/i })).toBeInTheDocument();
expect(screen.getByRole('radio', { name: /euro \(eur\)/i })).toBeInTheDocument();

expect(screen.getByRole('heading', { name: /cryptocurrencies/i })).toBeInTheDocument();
expect(screen.getByRole('radio', { name: /tether erc20 \(eusdt\)/i })).toBeInTheDocument();
expect(screen.getByRole('radio', { name: /usd coin \(usdc\)/i })).toBeInTheDocument();

Expand Down Expand Up @@ -348,7 +347,6 @@ describe('<CurrencySelector/>', () => {
set_currency: true,
};
renderComponent({ props: new_props });
expect(screen.getByRole('heading', { name: /cryptocurrencies/i })).toBeInTheDocument();
expect(screen.getByRole('radio', { name: /tether erc20 \(eusdt\)/i })).toBeInTheDocument();
expect(screen.getByRole('radio', { name: /usd coin \(usdc\)/i })).toBeInTheDocument();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ const CurrencySelector = observer(
?.length && (
<React.Fragment>
<RadioButtonGroup
is_title_enabled={false}
className='currency-selector__radio-group currency-selector__radio-group--with-margin'
label={localize('Cryptocurrencies')}
item_count={
reorderCurrencies(
crypto as keyof typeof reorderCurrencies,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import React from 'react';
import classNames from 'classnames';

export type TRadioButtonGroup = {
Expand Down

0 comments on commit e9b8a6b

Please sign in to comment.