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

Commit

Permalink
chore: fixed header and footer issue for market pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-deriv committed Dec 22, 2023
1 parent d8b2fe1 commit 528ee0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/features/pages/markets/etf/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ import Flex from 'features/components/atoms/flex-box'
import OtherMarketsSlider from 'features/components/molecules/other-markets-slider'
import MainFooter from 'features/components/templates/footer/'
import MainRowNavigation from 'features/components/templates/navigation/main-nav'
import { usePlatformQueryParam } from 'components/hooks/use-platform-query-param'

const ETFMarket = () => {
const { is_deriv_go } = usePlatformQueryParam()
return (
<Layout>
<MainRowNavigation />
{!is_deriv_go && <MainRowNavigation />}
<Banner />
<TradeTypes />
<Flex.Box
Expand Down
2 changes: 1 addition & 1 deletion src/pages/markets/components/sections/_hero_derived_fx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const DerivedFXHero = ({

return (
<>
<MainRowNavigation />
{!is_deriv_go && <MainRowNavigation />}
<BackgroundStyle>
<StyledContainer jc="flex-start">
<ContentWrapperStyle>
Expand Down

0 comments on commit 528ee0e

Please sign in to comment.