-
Notifications
You must be signed in to change notification settings - Fork 31
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
Showing
16 changed files
with
141 additions
and
38 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
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
4 changes: 4 additions & 0 deletions
4
...enueRecoveryScreens/RevenueRecoveryBillingProcessors/RevenueRecoveryBillingProcessors.res
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 = () => { | ||
"Revenue Recovery Billing Processors"->React.string | ||
} |
4 changes: 4 additions & 0 deletions
4
src/RevenueRecoveryScreens/RevenueRecoveryHome/RevenueRecoveryHome.res
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 = () => { | ||
"Revenue Recovery Home"->React.string | ||
} |
4 changes: 4 additions & 0 deletions
4
...enueRecoveryScreens/RevenueRecoveryPaymentProcessors/RevenueRecoveryPaymentProcessors.res
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 = () => { | ||
"Revenue Recovery Payment Processors"->React.string | ||
} |
4 changes: 4 additions & 0 deletions
4
src/RevenueRecoveryScreens/RevenueRecoveryPayments/RevenueRecoveryPayments.res
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 = () => { | ||
"Revenue Recovery Payments"->React.string | ||
} |
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 was deleted.
Oops, something went wrong.
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,20 @@ | ||
open SidebarTypes | ||
let emptyComponent = CustomComponent({ | ||
component: React.null, | ||
}) | ||
|
||
let useGetSideBarValues = () => { | ||
let {devReconv2Product, devRecoveryV2Product} = | ||
HyperswitchAtom.featureFlagAtom->Recoil.useRecoilValueFromAtom | ||
let sideBarValues = [] | ||
|
||
if devReconv2Product { | ||
sideBarValues->Array.push(ReconSidebarValues.reconSidebars) | ||
} | ||
|
||
if devRecoveryV2Product { | ||
sideBarValues->Array.push(RevenueRecoverySidebarValues.recoverySidebars) | ||
} | ||
|
||
sideBarValues | ||
} |
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,14 @@ | ||
@react.component | ||
let make = () => { | ||
let url = RescriptReactRouter.useUrl() | ||
|
||
{ | ||
switch url.path->HSwitchUtils.urlPath { | ||
| list{"v2", "recon", "onboarding"} => <ReconOnBoardingContainer /> | ||
| list{"v2", "recon", "configuration"} => <ReconConfigurationContainer /> | ||
| 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
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,14 @@ | ||
@react.component | ||
let make = () => { | ||
let url = RescriptReactRouter.useUrl() | ||
|
||
{ | ||
switch url.path->HSwitchUtils.urlPath { | ||
| list{"v2", "recovery", "home"} => <RevenueRecoveryHome /> | ||
| list{"v2", "recovery", "payment-processors"} => <RevenueRecoveryPaymentProcessors /> | ||
| list{"v2", "recovery", "billing-processors"} => <RevenueRecoveryBillingProcessors /> | ||
| list{"v2", "recovery", "payments"} => <RevenueRecoveryPayments /> | ||
| _ => React.null | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
src/entryPoints/RevenueRecoveryApp/RevenueRecoverySidebarValues.res
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,53 @@ | ||
open SidebarTypes | ||
|
||
let revenueRecoveryHome = { | ||
SubLevelLink({ | ||
name: "Home", | ||
link: `v2/recovery/home`, | ||
access: Access, | ||
searchOptions: [("Recovery home", "")], | ||
}) | ||
} | ||
|
||
let revenueRecoveryPaymentProcessors = { | ||
SubLevelLink({ | ||
name: "Payment Processors", | ||
link: `v2/recovery/payment-processors`, | ||
access: Access, | ||
searchOptions: [("Payment Processors", "")], | ||
}) | ||
} | ||
|
||
let revenueRecoveryBillingProcessors = { | ||
SubLevelLink({ | ||
name: "Billing Processors", | ||
link: `v2/recovery/billing-processors`, | ||
access: Access, | ||
searchOptions: [("Billing Processors", "")], | ||
}) | ||
} | ||
|
||
let revenueRecoveryPayments = { | ||
SubLevelLink({ | ||
name: "Payments", | ||
link: `v2/recovery/payments`, | ||
access: Access, | ||
searchOptions: [("Payments", "")], | ||
}) | ||
} | ||
|
||
let recoverySidebars = { | ||
let links = [ | ||
revenueRecoveryHome, | ||
revenueRecoveryPayments, | ||
revenueRecoveryPaymentProcessors, | ||
revenueRecoveryBillingProcessors, | ||
] | ||
|
||
Section({ | ||
name: "Recovery", | ||
icon: "v2/recovery", | ||
showSection: true, | ||
links, | ||
}) | ||
} |
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