Skip to content

Commit

Permalink
feat: Banner Addition in Disputes & Orders
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja committed Nov 30, 2023
1 parent bdf4edb commit 5e4a266
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/screens/HyperSwitch/Disputes/Disputes.res
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,22 @@ let make = () => {
}, ~wait=200)

let customUI =
<HelperComponents.BluredTableComponent
infoText="No disputes as of now." moduleName=" " showRedirectCTA=false
/>
<>
<div
className="flex border items-start border-blue-800 text-sm rounded-md gap-2 px-4 py-3 mt-5">
<Icon name="info-vacent" className="text-blue-900 mt-1" size=18 />
<p>
{"Missing disputes? Disputes might not be supported for your payment processor or might not yet have been integrated with hyperswitch. Please check the"->React.string}
<a href="https://hyperswitch.io/pm-list" target="_blank" className="text-blue-900">
{" feature matrix "->React.string}
</a>
{"for your processor."->React.string}
</p>
</div>
<HelperComponents.BluredTableComponent
infoText="No disputes as of now." moduleName=" " showRedirectCTA=false
/>
</>

let {generateReport} =
HyperswitchAtom.featureFlagAtom
Expand Down
6 changes: 6 additions & 0 deletions src/screens/HyperSwitch/Order/ShowOrder.res
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,12 @@ module Attempts = {
}

<div className="flex flex-col gap-4">
<div className="flex border items-start border-blue-800 text-sm rounded-md gap-2 px-4 py-3">
<Icon name="info-vacent" className="text-blue-900 mt-1" size=18 />
<span>
{`You can validate the information shown here by cross checking the hyperswitch payment attempt identifier (Attempt ID) in your payment processor portal.`->React.string}
</span>
</div>
<p className="font-bold text-fs-16 text-jp-gray-900"> {"Payment Attempts"->React.string} </p>
<CustomExpandableTable
title="Attempts"
Expand Down

0 comments on commit 5e4a266

Please sign in to comment.