Skip to content

Commit

Permalink
fix: added on click event for add-pm-button
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam25092001 committed Oct 18, 2024
1 parent 68c3ed2 commit 7fb9887
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/modules/HyperModule.res
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type hyperModule = {
exitWidget: (string, string) => unit,
exitCardForm: string => unit,
launchWidgetPaymentSheet: (string, Dict.t<JSON.t> => unit) => unit,
onAddPaymentMethod: string => unit,
exitWidgetPaymentsheet: (int, string, bool) => unit,
}
let getStrFunFromKey = key => {
Expand Down Expand Up @@ -64,6 +65,7 @@ let hyperModule = {
exitWidget: getStrFun2FromKey("exitWidget"),
exitCardForm: getStrFunFromKey("exitCardForm"),
launchWidgetPaymentSheet: getStrFunWithCallbackFromKey("launchWidgetPaymentSheet"),
onAddPaymentMethod: getStrFunFromKey("onAddPaymentMethod"),
exitWidgetPaymentsheet: getIntStrBoolFunFromKey("exitWidgetPaymentsheet"),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module AddPaymentMethodButton = {

<CustomTouchableOpacity
onPress={_ => (
// TODO: navigate to ADD_PM_SCREEN
HyperModule.hyperModule.onAddPaymentMethod("")
)}
style={viewStyle(
~paddingVertical=16.->dp,
Expand Down

0 comments on commit 7fb9887

Please sign in to comment.