Skip to content

Commit

Permalink
feat: Added Home PageHeading
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja committed Nov 29, 2023
1 parent 92921cb commit 1da7629
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions src/screens/HyperSwitch/Home/HomeV2.res
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ module Resources = {

@react.component
let make = () => {
let greeting = HomeUtils.getGreeting()
let isMobileView = MatchMedia.useMobileChecker()
let {isProdIntentCompleted} = React.useContext(GlobalProvider.defaultContext)
let enumDetails = Recoil.useRecoilValueFromAtom(HyperswitchAtom.enumVariantAtom)
Expand All @@ -349,13 +350,19 @@ let make = () => {
isProdIntentCompleted,
]

<div className="w-full flex flex-col gap-14">
{if checkingConditions->Js.Array2.includes(false) {
<QuickStart isMobileView />
} else {
<HomePageOverviewComponent />
}}
<RecipesAndPlugins />
<Resources />
</div>
<>
<PageUtils.PageHeading
title={`${greeting}, it's great to see you!`}
subTitle="Welcome to the home of your Payments Control Centre. It aims at providing your team with a 360-degree view of payments."
/>
<div className="w-full flex flex-col gap-14">
{if checkingConditions->Js.Array2.includes(false) {
<QuickStart isMobileView />
} else {
<HomePageOverviewComponent />
}}
<RecipesAndPlugins />
<Resources />
</div>
</>
}

0 comments on commit 1da7629

Please sign in to comment.