initial intellipay implementation

Co-authored-by: Patrick Fic <patrick@thinkimex.com>
This commit is contained in:
swtmply
2023-03-01 00:31:44 +08:00
parent 840e760619
commit c8ee9ca5a7
12 changed files with 385 additions and 15 deletions

View File

@@ -0,0 +1,35 @@
import { Button } from "antd";
import React from "react";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
import { setModalContext } from "../../redux/modals/modals.actions";
import CardPaymentModalComponent from "./card-payment-modal.component.";
const mapStateToProps = createStructuredSelector({});
const mapDispatchToProps = (dispatch) => ({
setCardPaymentContext: (context) =>
dispatch(setModalContext({ context: context, modal: "cardPayment" })),
});
function Test({ setCardPaymentContext }) {
return (
<div>
<CardPaymentModalComponent />
<Button
onClick={() =>
setCardPaymentContext({
context: {
test: "Test String",
},
})
}
>
Open Modal
</Button>
{/* <IntellipayTestPage /> */}
</div>
);
}
export default connect(mapStateToProps, mapDispatchToProps)(Test);