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

Commit

Permalink
fix: added markets bottom navigation (#6377)
Browse files Browse the repository at this point in the history
* fix: added markets bottom navigation

* fix: added markets bottm nav to etf page
  • Loading branch information
Nuzhy-Deriv authored Dec 28, 2023
1 parent afef91d commit 3530cb4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
}
.flex_container {
padding-block-start: 7rem;
padding-block-start: 8rem;
@include breakpoints(tablet) {
position: relative;
min-block-size: 36rem;
Expand Down
10 changes: 9 additions & 1 deletion src/features/pages/markets/etf/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,20 @@ import OtherMarketsSlider from 'features/components/molecules/other-markets-slid
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'
import MarketBottomNav from 'features/components/templates/navigation/template/market-bottom-nav'

const ETFMarket = () => {
const { is_deriv_go } = usePlatformQueryParam()
return (
<Layout>
{!is_deriv_go && <MainRowNavigation />}
{!is_deriv_go && (
<div className="fixed z-[4] w-full">
<MainRowNavigation />
<div className="pt-[8rem]">
<MarketBottomNav />
</div>
</div>
)}
<Banner />
<TradeTypes />
<Flex.Box
Expand Down
11 changes: 10 additions & 1 deletion src/pages/markets/components/sections/_hero_derived_fx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { handleGetTrading } from 'components/custom/utils'
import { usePlatformQueryParam } from 'components/hooks/use-platform-query-param'
import { TString } from 'types/generics'
import MainRowNavigation from 'features/components/templates/navigation/main-nav'
import MarketBottomNav from 'features/components/templates/navigation/template/market-bottom-nav'

type ContainerProps = {
isDerivGo?: boolean
Expand Down Expand Up @@ -80,6 +81,7 @@ const StyledHeader = styled.h1<ContainerProps>`
}
`
const BackgroundStyle = styled.div`
padding-top: 14rem;
background-color: var(--color-white);
flex: 1;
height: 65rem;
Expand Down Expand Up @@ -201,7 +203,14 @@ export const DerivedFXHero = ({

return (
<>
{!is_deriv_go && <MainRowNavigation />}
{!is_deriv_go && (
<div className="fixed z-[4] w-full">
<MainRowNavigation />
<div className="pt-[8rem]">
<MarketBottomNav />
</div>
</div>
)}
<BackgroundStyle>
<StyledContainer jc="flex-start">
<ContentWrapperStyle>
Expand Down

1 comment on commit 3530cb4

@vercel
Copy link

@vercel vercel bot commented on 3530cb4 Dec 28, 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.binary.sx
deriv-com-git-master.binary.sx

Please sign in to comment.