Skip to content

Commit

Permalink
Merge pull request #12 from mayuran-deriv/mayuran/fix
Browse files Browse the repository at this point in the history
fix: academy pages
  • Loading branch information
habib-deriv authored Jul 25, 2024
2 parents 5c690fb + 866cfaa commit 2565856
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const StaticNav = () => {
has_centered_items
has_centered_logo
renderLogo={() => (
<Link url={{ type: 'internal', to: '/' }}>
<Link url={{ type: 'non-company', href: 'https://deriv.com/' }}>
<Image src={LogoImage} className={static_nav_logo} />
</Link>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ import { Localize } from 'components/localization'
import Flex from 'features/components/atoms/flex-box'
import Typography from 'features/components/atoms/typography'
import LinkButton from 'features/components/atoms/link-button'
import MainFooter from 'features/components/templates/footer'
import MainRowNavigation from 'features/components/templates/navigation/main-nav'
import { BuildVariantType } from 'features/types'
import AcademyNav from 'features/components/templates/navigation/academy-nav'

const CheckEmailContainer = ({region}: BuildVariantType) => {
const CheckEmailContainer = ({ region }: BuildVariantType) => {
return (
<Layout region={region}>
<MainRowNavigation />
<AcademyNav />
<Flex.Box
justify="center"
align="center"
Expand All @@ -34,12 +33,11 @@ const CheckEmailContainer = ({region}: BuildVariantType) => {
<CheckEmailSteps />
<LinkButton.Primary
id="dm-reenter-email-signup"
url={{ type: 'internal', to: '/signup' }}
url={{ type: 'internal', to: '/academy-signup' }}
>
<Localize translate_text="_t_Re-enter your email and try again_t_" />
</LinkButton.Primary>
</Flex.Box>
<MainFooter />
</Layout>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const AffiliateSignupStatus = ({

const handleSuccess = useCallback((action: 'close_wizard' | 'success_popup_cta') => {
trackEvent({ action })
window.location.href = ' https://deriv.com/partners/affiliate-ib/'
window.location.href = 'https://signup.deriv.com/signup-affiliates/'
}, [])

const handleIssue = useCallback(() => {
Expand Down

0 comments on commit 2565856

Please sign in to comment.