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 May 23, 2024
1 parent ae72dd9 commit d0d16fa
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 d0d16fa

Please sign in to comment.