Skip to content

Commit

Permalink
chore: removed compiler warning and threeds comp change
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanjli525 committed Sep 26, 2024
1 parent 3076a6a commit 19d59f0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ let paymentsLifeCycleChartEntity: chartEntity<
}

// Payments Processed
open PaymentsProcessedUtils
let paymentsProcessedEntity: moduleEntity = {
requestBodyConfig: {
delta: false,
Expand All @@ -36,16 +35,19 @@ let paymentsProcessedChartEntity: chartEntity<
getChatOptions: LineGraphUtils.getLineGraphOptions,
}

let paymentsProcessedTableEntity = EntityType.makeEntity(
~uri=``,
~getObjects,
~dataKey="queryData",
~defaultColumns=visibleColumns,
~requiredSearchFieldsList=[],
~allColumns=visibleColumns,
~getCell,
~getHeading,
)
let paymentsProcessedTableEntity = {
open PaymentsProcessedUtils
EntityType.makeEntity(
~uri=``,
~getObjects,
~dataKey="queryData",
~defaultColumns=visibleColumns,
~requiredSearchFieldsList=[],
~allColumns=visibleColumns,
~getCell,
~getHeading,
)
}

// Payments Success Rate
let paymentsSuccessRateEntity: moduleEntity = {
Expand All @@ -66,7 +68,6 @@ let paymentsSuccessRateChartEntity: chartEntity<
}

// Payments Distribution
open PaymentsDistributionUtils
let paymentsDistributionEntity: moduleEntity = {
requestBodyConfig: {
delta: false,
Expand All @@ -84,13 +85,16 @@ let paymentsDistributionChartEntity: chartEntity<
getChatOptions: BarGraphUtils.getBarGraphOptions,
}

let paymentsDistributionTableEntity = EntityType.makeEntity(
~uri=``,
~getObjects,
~dataKey="queryData",
~defaultColumns=visibleColumns,
~requiredSearchFieldsList=[],
~allColumns=visibleColumns,
~getCell,
~getHeading,
)
let paymentsDistributionTableEntity = {
open PaymentsDistributionUtils
EntityType.makeEntity(
~uri=``,
~getObjects,
~dataKey="queryData",
~defaultColumns=visibleColumns,
~requiredSearchFieldsList=[],
~allColumns=visibleColumns,
~getCell,
~getHeading,
)
}
31 changes: 1 addition & 30 deletions src/screens/ThreeDsProcessors/ThreeDsProcessorHome.res
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
module MenuOption = {
open HeadlessUI
@react.component
let make = (~updateStepValue, ~setCurrentStep) => {
<Popover \"as"="div" className="relative inline-block text-left">
{_popoverProps => <>
<Popover.Button> {_ => <Icon name="menu-option" size=28 />} </Popover.Button>
<Popover.Panel className="absolute z-20 right-5 top-4">
{panelProps => {
<div
id="neglectTopbarTheme"
className="relative flex flex-col bg-white py-3 overflow-hidden rounded ring-1 ring-black ring-opacity-5 w-40">
{<>
<Navbar.MenuOption
text="Update"
onClick={_ => {
panelProps["close"]()
setCurrentStep(_ => updateStepValue)
}}
/>
</>}
</div>
}}
</Popover.Panel>
</>}
</Popover>
}
}

@react.component
let make = () => {
open ThreeDsProcessorTypes
Expand Down Expand Up @@ -194,7 +165,7 @@ let make = () => {
}

let summaryPageButton = switch currentStep {
| Preview => <MenuOption updateStepValue=ConfigurationFields setCurrentStep />
| Preview => React.null
| _ =>
<Button
text="Done"
Expand Down

0 comments on commit 19d59f0

Please sign in to comment.