diff --git a/packages/trader/src/AppV2/Components/Guide/guide-description-modal.tsx b/packages/trader/src/AppV2/Components/Guide/guide-description-modal.tsx index 235638b1817e..c868af95ffe5 100644 --- a/packages/trader/src/AppV2/Components/Guide/guide-description-modal.tsx +++ b/packages/trader/src/AppV2/Components/Guide/guide-description-modal.tsx @@ -38,6 +38,17 @@ const GuideDescriptionModal = ({ clickAndKeyEventHandler(() => setIsVideoPlayerOpened(!is_video_player_opened), e); }; + const guide_content_props = { + contract_list, + onChipSelect, + onTermClick, + selected_contract_type, + show_guide_for_selected_contract, + show_description_in_a_modal, + toggleVideoPlayer, + video_src, + }; + React.useEffect(() => { if (modal_ref.current) is_video_player_opened ? modal_ref.current.showModal() : modal_ref.current.close(); }, [is_video_player_opened]); @@ -55,16 +66,7 @@ const GuideDescriptionModal = ({ )} - + ) : (
- +
)} {is_video_player_opened && ( diff --git a/packages/trader/src/AppV2/Containers/Trade/trade-types.tsx b/packages/trader/src/AppV2/Containers/Trade/trade-types.tsx index 9ba203b96db2..ab77ea8ef7b9 100644 --- a/packages/trader/src/AppV2/Containers/Trade/trade-types.tsx +++ b/packages/trader/src/AppV2/Containers/Trade/trade-types.tsx @@ -226,27 +226,26 @@ const TradeTypes = ({ contract_type, onTradeTypeSelect, trade_types, is_dark_mod const should_show_view_all = trade_type_chips.length >= 2 || getItems(other_trade_types).length > 0; const show_trade_type_list_divider = !!other_trade_types[0]?.items?.length; const show_editing_divider = trade_types_array.length !== pinned_trade_types[0]?.items?.length; + const trade_type_content_props = { + handleCustomizeTradeTypes, + handleRemovePinnedClick, + handleOnDrag, + handleOnTradeTypeSelect, + handleAddPinnedClick, + is_editing, + is_dark_mode_on, + isTradeTypeSelected, + savePinnedToLocalStorage, + show_trade_type_list_divider, + show_editing_divider, + other_trade_types, + pinned_trade_types, + }; const action_sheet_content = [ { id: 1, - component: ( - - ), + component: , }, { id: 2, @@ -294,21 +293,7 @@ const TradeTypes = ({ contract_type, onTradeTypeSelect, trade_types, is_dark_mod } /> - + ) : (