diff --git a/packages/components/src/components/mobile-drawer/mobile-drawer-submenu.jsx b/packages/components/src/components/mobile-drawer/mobile-drawer-submenu.jsx index 94e01482c544..d949d0ce691f 100644 --- a/packages/components/src/components/mobile-drawer/mobile-drawer-submenu.jsx +++ b/packages/components/src/components/mobile-drawer/mobile-drawer-submenu.jsx @@ -13,6 +13,7 @@ const SubMenu = ({ submenu_icon, submenu_title, submenu_suffix_icon, + route_config_path, }) => { const [is_expanded, setIsExpanded] = React.useState(false); @@ -28,7 +29,11 @@ const SubMenu = ({
{submenu_icon && } {submenu_title && ( - + {submenu_title} )} diff --git a/packages/core/src/App/Components/Layout/Header/toggle-menu-drawer.jsx b/packages/core/src/App/Components/Layout/Header/toggle-menu-drawer.jsx index 7f2d976eb0b0..155c1748f085 100644 --- a/packages/core/src/App/Components/Layout/Header/toggle-menu-drawer.jsx +++ b/packages/core/src/App/Components/Layout/Header/toggle-menu-drawer.jsx @@ -1,6 +1,6 @@ import classNames from 'classnames'; import React from 'react'; -import { Div100vhContainer, Icon, MobileDrawer, ToggleSwitch } from '@deriv/components'; +import { Div100vhContainer, Icon, MobileDrawer, ToggleSwitch, Text } from '@deriv/components'; import { routes, PlatformContext } from '@deriv/shared'; import { localize, getAllowedLanguages } from '@deriv/translations'; import { NetworkStatus } from 'App/Components/Layout/Footer'; @@ -64,7 +64,14 @@ const MenuLink = ({ onClick={onClickLink} > - {text} + + {text} + {suffix_icon && } ); @@ -178,6 +185,7 @@ const ToggleMenuDrawer = React.forwardRef( submenu_title={route_config.getTitle()} submenu_suffix_icon='IcChevronRight' onToggle={expandSubMenu} + route_config_path={route_config.path} > {!has_subroutes && route_config.routes.map((route, index) => {