Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: removed compiler warning and threeds comp change #1478

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ let getCell = (paymentObj, colType): Table.cell => {
| PaymentId =>
CustomCell(
<HSwitchOrderUtils.CopyLinkTableCell
url={`/payments/${paymentObj.payment_id}`}
url={`/payments/${paymentObj.payment_id}/${paymentObj.profile_id}`}
displayValue={paymentObj.payment_id}
copyValue={Some(paymentObj.payment_id)}
/>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ let getCell = (paymentObj, colType): Table.cell => {
| PaymentId =>
CustomCell(
<HSwitchOrderUtils.CopyLinkTableCell
url={`/payments/${paymentObj.payment_id}`}
url={`/payments/${paymentObj.payment_id}/${paymentObj.profile_id}`}
displayValue={paymentObj.payment_id}
copyValue={Some(paymentObj.payment_id)}
/>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ let getCell = (refundsObj, colType): Table.cell => {
| RefundId =>
CustomCell(
<HSwitchOrderUtils.CopyLinkTableCell
url={`/refunds/${refundsObj.refund_id}`}
url={`/refunds/${refundsObj.refund_id}/${refundsObj.profile_id}`}
displayValue={refundsObj.refund_id}
copyValue={Some(refundsObj.refund_id)}
/>,
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Disputes/DisputesEntity.res
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ let getCell = (disputesData, colType): Table.cell => {
| DisputeId =>
CustomCell(
<HSwitchOrderUtils.CopyLinkTableCell
url={`/disputes/${disputesData.dispute_id}`}
url={`/disputes/${disputesData.dispute_id}/${disputesData.profile_id}`}
displayValue={disputesData.dispute_id}
copyValue={Some(disputesData.dispute_id)}
/>,
Expand Down
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,
)
}
2 changes: 1 addition & 1 deletion src/screens/Order/OrderEntity.res
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ let getCell = (order, colType: colType): Table.cell => {
| PaymentId =>
CustomCell(
<HSwitchOrderUtils.CopyLinkTableCell
url={`/payments/${order.payment_id}`}
url={`/payments/${order.payment_id}/${order.profile_id}`}
displayValue={order.payment_id}
copyValue={Some(order.payment_id)}
/>,
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Payouts/PayoutsEntity.res
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ let getCell = (payoutData, colType): Table.cell => {
| PayoutId =>
CustomCell(
<HSwitchOrderUtils.CopyLinkTableCell
url={`/payouts/${payoutData.payout_id}`}
url={`/payouts/${payoutData.payout_id}/${payoutData.profile_id}`}
displayValue={payoutData.payout_id}
copyValue={Some(payoutData.payout_id)}
/>,
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Refunds/RefundEntity.res
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ let getCell = (refundData, colType): Table.cell => {
| RefundId =>
CustomCell(
<CopyLinkTableCell
url={`/refunds/${refundData.refund_id}`}
url={`/refunds/${refundData.refund_id}/${refundData.profile_id}`}
displayValue={refundData.refund_id}
copyValue={Some(refundData.refund_id)}
/>,
Expand Down
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
Loading