Skip to content

Commit

Permalink
chore: merge main & resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanjli525 committed Sep 25, 2024
1 parent 5e66d50 commit b51a346
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/screens/APIUtils/APIUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ let useGetURL = () => {
| Get =>
switch queryParamerters {
| Some(queryParams) =>
switch (transactionEntity, userManagementRevamp) {
| (#Merchant, true) => `refunds/aggregate?${queryParams}`
| (#Profile, true) => `refunds/profile/aggregate?${queryParams}`
switch transactionEntity {
| #Merchant => `refunds/aggregate?${queryParams}`
| #Profile => `refunds/profile/aggregate?${queryParams}`
| _ => `refunds/aggregate?${queryParams}`
}
| None => `refunds/aggregate`
Expand Down
12 changes: 5 additions & 7 deletions src/screens/Refunds/Refund.res
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,11 @@ let make = () => {
<div className="flex justify-between items-center">
<PageUtils.PageHeading title="Refunds" subTitle="" />
<div className="flex gap-4">
<RenderIf condition={userManagementRevamp}>
<OMPSwitchHelper.OMPViews
views={OMPSwitchUtils.transactionViewList(~checkUserEntity)}
selectedEntity={transactionEntity}
onChange={updateTransactionEntity}
/>
</RenderIf>
<OMPSwitchHelper.OMPViews
views={OMPSwitchUtils.transactionViewList(~checkUserEntity)}
selectedEntity={transactionEntity}
onChange={updateTransactionEntity}
/>
<RenderIf condition={generateReport && refundData->Array.length > 0}>
<GenerateReport entityName={REFUND_REPORT} />
</RenderIf>
Expand Down

0 comments on commit b51a346

Please sign in to comment.