Skip to content

Commit

Permalink
Merge branch 'ach-bank-debit' of https://github.com/juspay/hyperswitc…
Browse files Browse the repository at this point in the history
…h-client-core into ach-bank-debit
  • Loading branch information
Pradeep-kumar1202 committed Dec 24, 2024
2 parents 7b0b446 + 35f983e commit 0f56aa7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/common/DynamicFields.res
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module RenderField = {
let arr = text->String.split(" ")

let firstNameVal = arr->Array.get(0)->Option.getOr("")
let lastNameVal = arr->Array.filterWithIndex((_, index) => index !== 0)->Array.join("")
let lastNameVal = arr->Array.filterWithIndex((_, index) => index !== 0)->Array.join(" ")
let isBillingFields =
required_fields_type.field_type === BillingName ||
required_fields_type.field_type === ShippingName
Expand Down
15 changes: 14 additions & 1 deletion src/routes/FullScreenSheetWrapper.res
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ let make = (~children) => {
None
}, [loading])

let navigationBarHeight = React.useMemo(() => {
if Platform.os !== #android {
0.
} else {
let screenHeight = Dimensions.get(#screen).height
let windowHeight = Dimensions.get(#window).height
screenHeight -. windowHeight
}
}, [])

<View
style={viewStyle(
~flex=1.,
Expand All @@ -68,7 +78,10 @@ let make = (~children) => {
(),
)}>
<CustomView onDismiss=onModalClose>
<CustomView.Wrapper onModalClose> {children} </CustomView.Wrapper>
<CustomView.Wrapper onModalClose>
{children}
<Space height={navigationBarHeight} />
</CustomView.Wrapper>
</CustomView>
</Animated.View>
<LoadingOverlay />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/ParentPaymentSheet.res
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ let make = () => {
| (None, _) => <PaymentSheet setConfirmButtonDataRef />
}}
<GlobalConfirmButton confirmButtonDataRef />
<Space height=12. />
<Space height=15. />
</FullScreenSheetWrapper>
}

0 comments on commit 0f56aa7

Please sign in to comment.