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

Commit

Permalink
chore: fix prime logo
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-deriv committed Aug 31, 2023
1 parent 67ab3c7 commit 935feb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Flex from 'features/components/atoms/flex-box'
import { getLocationPathname } from 'common/utility'
import useScrollToElement from 'features/hooks/use-scroll-to-element'

const PaymentAgentAffiliateNav = () => {
const PaymentAgentAffiliateNav = ({ is_prime_page = false }: { is_prime_page?: boolean }) => {
const path_name = getLocationPathname()
const clickToScrollHandler = useScrollToElement('getintouch')

Expand Down Expand Up @@ -67,15 +67,14 @@ const PaymentAgentAffiliateNav = () => {
<Link
url={{
type: 'internal',
to: path_name.includes('deriv-prime')
? '/partners/deriv-prime'
: '/partners',
to: is_prime_page ? '/partners/deriv-prime' : '/partners',
}}
>
<Image
src={path_name.includes('deriv-prime') ? PrimeLogo : PartnerNavLogo}
className={partners_nav_logo}
/>
{is_prime_page ? (
<Image src={PrimeLogo} className={partners_nav_logo} />
) : (
<Image src={PartnerNavLogo} className={partners_nav_logo} />
)}
</Link>
)}
items={affiliateNavItems}
Expand Down
2 changes: 1 addition & 1 deletion src/features/pages/partners/deriv-prime/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const DerivPrime = () => {
<Helmet>
<script type="application/ld+json">{JSON.stringify(faq_schema)}</script>
</Helmet>
<PaymentAgentAffiliateNav />
<PaymentAgentAffiliateNav is_prime_page />
<Hero />
<Potential />
<CommercialPlan />
Expand Down

0 comments on commit 935feb1

Please sign in to comment.