-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c278fbd
commit 31bac54
Showing
16 changed files
with
177 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@react.component | ||
let make = () => { | ||
open HSwitchUtils | ||
open HyperswitchAtom | ||
let pageViewEvent = MixpanelHook.usePageView() | ||
let url = RescriptReactRouter.useUrl() | ||
let featureFlagDetails = featureFlagAtom->Recoil.useRecoilValueFromAtom | ||
let path = url.path->List.toArray->Array.joinWith("/") | ||
React.useEffect(() => { | ||
if featureFlagDetails.mixpanel { | ||
pageViewEvent(~path)->ignore | ||
} | ||
None | ||
}, (featureFlagDetails.mixpanel, path)) | ||
|
||
{ | ||
switch url.path->urlPath { | ||
| list{"v2", "recon", "onboarding"} => <ReconOnBoardingContainer /> | ||
| list{"v2", "recon", "home"} => <ReconHomeContainer /> | ||
| list{"v2", "recon", "analytics"} => <ReconAnalyticsContainer /> | ||
| _ => React.null | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
open SidebarTypes | ||
|
||
let reconOnBoarding = { | ||
SubLevelLink({ | ||
name: "Profile Setup", | ||
link: `v2/recon/onboarding`, | ||
access: Access, | ||
searchOptions: [("Recon onboarding", "")], | ||
}) | ||
} | ||
let reconHome = { | ||
SubLevelLink({ | ||
name: "Home", | ||
link: `v2/recon/home`, | ||
access: Access, | ||
searchOptions: [("Recon home", "")], | ||
}) | ||
} | ||
let reconAnalytics = { | ||
SubLevelLink({ | ||
name: "Analytics", | ||
link: `v2/recon/analytics`, | ||
access: Access, | ||
searchOptions: [("Recon analytics", "")], | ||
}) | ||
} | ||
|
||
let recon = () => { | ||
let links = [reconOnBoarding, reconAnalytics] | ||
Section({ | ||
name: "Recon And Settlement", | ||
icon: "v2/recon", | ||
showSection: true, | ||
links, | ||
}) | ||
} | ||
let emptyComponent = CustomComponent({ | ||
component: React.null, | ||
}) | ||
|
||
let useGetReconSideBar = () => { | ||
let {devReconv2Product} = HyperswitchAtom.featureFlagAtom->Recoil.useRecoilValueFromAtom | ||
let sidebar = [devReconv2Product ? recon() : emptyComponent] | ||
sidebar | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@react.component | ||
let make = () => { | ||
<ReconAnalytics /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@react.component | ||
let make = () => { | ||
<ReconHome /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@react.component | ||
let make = () => { | ||
<ReconOnboarding /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@react.component | ||
let make = () => { | ||
<div> {"Analytics"->React.string} </div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@react.component | ||
let make = () => { | ||
<div> {"Home"->React.string} </div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@react.component | ||
let make = () => { | ||
<div> {"OnBoarding"->React.string} </div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@react.component | ||
let make = () => { | ||
<div> | ||
<ReconOnbdLanding /> | ||
</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters