From 47a50aafad2f1232e12cb5cb67572b8f623a6d13 Mon Sep 17 00:00:00 2001 From: hasan-deriv Date: Fri, 15 Sep 2023 16:34:57 +0800 Subject: [PATCH] feat: removed hide in condition --- src/features/components/molecules/other-markets-slider/data.ts | 2 -- .../components/molecules/other-markets-slider/index.tsx | 1 - 2 files changed, 3 deletions(-) diff --git a/src/features/components/molecules/other-markets-slider/data.ts b/src/features/components/molecules/other-markets-slider/data.ts index e8f59a4fa1d..7fa1ea84706 100644 --- a/src/features/components/molecules/other-markets-slider/data.ts +++ b/src/features/components/molecules/other-markets-slider/data.ts @@ -18,7 +18,6 @@ export type MarketPageType = export type OtherMarketsConfig = { current_market: MarketPageType is_eu: boolean - hide_in: MarketPageType } export type SmartOtherMarketsItem = TSmartContent @@ -118,7 +117,6 @@ export const other_markets_items: SmartOtherMarketsItem[] = [ }, visibility: { current_market: 'commodities', - hide_in: 'etfs', }, }, ] diff --git a/src/features/components/molecules/other-markets-slider/index.tsx b/src/features/components/molecules/other-markets-slider/index.tsx index b6e5e62d377..953efb76e8a 100644 --- a/src/features/components/molecules/other-markets-slider/index.tsx +++ b/src/features/components/molecules/other-markets-slider/index.tsx @@ -30,7 +30,6 @@ const OtherMarketsSlider = ({ config: { current_market: (market_page) => market_page !== current_market, is_eu: (item_is_eu) => item_is_eu === undefined || is_eu === item_is_eu, - hide_in: (market_page) => market_page === undefined || market_page !== current_market, }, }) const is_no_linkAvailable = !!available_markets?.length