initial intellipay implementation
Co-authored-by: Patrick Fic <patrick@thinkimex.com>
This commit is contained in:
35
client/src/components/_test/test.page.jsx
Normal file
35
client/src/components/_test/test.page.jsx
Normal 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);
|
||||
Reference in New Issue
Block a user