Skip to content

Commit

Permalink
fix: hotfix alignment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanjli525 committed Sep 30, 2024
1 parent 6e92f4e commit 5fcab03
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
20 changes: 10 additions & 10 deletions src/screens/Disputes/Disputes.res
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ let make = () => {
<div>
<div className="flex justify-between items-center">
<PageUtils.PageHeading title="Disputes" subTitle="View and manage all disputes" />
<OMPSwitchHelper.OMPViews
views={OMPSwitchUtils.transactionViewList(~checkUserEntity)}
selectedEntity={transactionEntity}
onChange={updateTransactionEntity}
/>
</div>
<div className="flex w-full justify-end pb-3 gap-3">
<RenderIf condition={generateReport && disputesData->Array.length > 0}>
<GenerateReport entityName={DISPUTE_REPORT} />
</RenderIf>
<div className="flex gap-4">
<OMPSwitchHelper.OMPViews
views={OMPSwitchUtils.transactionViewList(~checkUserEntity)}
selectedEntity={transactionEntity}
onChange={updateTransactionEntity}
/>
<RenderIf condition={true && disputesData->Array.length > 0}>
<GenerateReport entityName={DISPUTE_REPORT} />
</RenderIf>
</div>
</div>
<PageLoaderWrapper screenState customUI>
<div className="flex flex-col gap-4">
Expand Down
19 changes: 10 additions & 9 deletions src/screens/Refunds/Refund.res
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,16 @@ let make = () => {
<div className="min-h-[50vh]">
<div className="flex justify-between items-center">
<PageUtils.PageHeading title="Refunds" subTitle="View and manage all refunds" />
<OMPSwitchHelper.OMPViews
views={OMPSwitchUtils.transactionViewList(~checkUserEntity)}
selectedEntity={transactionEntity}
onChange={updateTransactionEntity}
/>
<div className="flex gap-4">
<OMPSwitchHelper.OMPViews
views={OMPSwitchUtils.transactionViewList(~checkUserEntity)}
selectedEntity={transactionEntity}
onChange={updateTransactionEntity}
/>
<RenderIf condition={generateReport && refundData->Array.length > 0}>
<GenerateReport entityName={REFUND_REPORT} />
</RenderIf>
</div>
</div>
<div className="flex justify-between gap-3">
<div className="flex-1">
Expand All @@ -92,10 +97,6 @@ let make = () => {
title="Refunds"
/>
</div>
<RenderIf condition={generateReport && refundData->Array.length > 0}>
<GenerateReport entityName={REFUND_REPORT} />
</RenderIf>
<PortalCapture key={`RefundsCustomizeColumn`} name={`RefundsCustomizeColumn`} />
</div>
<PageLoaderWrapper screenState customUI>
<LoadedTableWithCustomColumns
Expand Down

0 comments on commit 5fcab03

Please sign in to comment.