Skip to content

Commit 2c69df4

Browse files
authored
fix: updated platform config to href from link_to (#17773)
1 parent 4754ed9 commit 2c69df4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/core/src/App/Components/Layout/Header/platform-dropdown.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ const PlatformDropdownContent = ({ platform, app_routing_history }) => {
3737
<a
3838
data-testid='dt_platform_dropdown_link'
3939
href={platform.href}
40-
className='platform-dropdown__list-platform'
40+
className={`platform-dropdown__list-platform ${
41+
getActivePlatform(app_routing_history) === platform.name ? 'active' : ''
42+
}`}
4143
>
4244
<PlatformBox platform={platform} />
4345
</a>

packages/core/src/App/Constants/platform-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const platform_config: TPlatformConfig[] = [
2323
title: () => getPlatformSettings('dbot').name,
2424
name: getPlatformSettings('dbot').name,
2525
description: () => localize('Automated trading at your fingertips. No coding needed.'),
26-
link_to: routes.bot,
26+
href: routes.bot,
2727
},
2828
{
2929
icon: getPlatformSettings('smarttrader').icon,

0 commit comments

Comments
 (0)