Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Aswathy/feat: redirecting the ctrader to tradershub #5846

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import useHandleSignup from 'components/hooks/use-handle-signup'
import usePpc from 'features/hooks/use-ppc'
import LanguageSwitcher from 'features/components/molecules/language-switcher'
import Flex from 'features/components/atoms/flex-box'
import { handleGetTrading } from 'components/custom/utils'
import { handleRedirectToTradersHub } from 'components/custom/utils'

const MainNavButtons = () => {
const [is_logged_in] = useAuthCheck()
Expand All @@ -25,7 +25,7 @@ const MainNavButtons = () => {
gap="8x"
>
{is_logged_in ? (
<Button.Primary onClick={handleGetTrading} outlined>
<Button.Primary onClick={handleRedirectToTradersHub} outlined>
<Localize translate_text="_t_Get trading_t_" />
</Button.Primary>
) : (
Expand Down
4 changes: 2 additions & 2 deletions src/features/pages/home/hero/content/hero-cta.button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Localize } from 'components/localization'
import useAuthCheck from 'components/hooks/use-auth-check'
import Button from 'features/components/atoms/button'
import useHandleSignup from 'components/hooks/use-handle-signup'
import { handleGetTrading } from 'components/custom/utils'
import { handleRedirectToTradersHub } from 'components/custom/utils'

const HeroCtaButton = () => {
const [is_logged_in] = useAuthCheck()
Expand All @@ -15,7 +15,7 @@ const HeroCtaButton = () => {
<Button.Primary
className={hero_cta}
type={'button'}
onClick={handleGetTrading}
onClick={handleRedirectToTradersHub}
id="dm-hero-signup"
aria-label="Get trading"
hero
Expand Down
Loading