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

Commit

Permalink
Aswathy/feat: redirecting the ctrader to tradershub (#5846)
Browse files Browse the repository at this point in the history
* feat: redirecting the ctrader to tradershub

* feat: changed the redirection of traders hub
  • Loading branch information
aswathy-deriv authored Nov 10, 2023
1 parent 5d0bc08 commit fd615d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

1 comment on commit fd615d4

@vercel
Copy link

@vercel vercel bot commented on fd615d4 Nov 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-com – ./

deriv-com-git-master.binary.sx
deriv-com.binary.sx

Please sign in to comment.