transfered test files to separate component
This commit is contained in:
@@ -3,7 +3,7 @@ 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.";
|
||||
import CardPaymentModalContainer from "../card-payment-modal/card-payment-modal.container.";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({});
|
||||
|
||||
@@ -15,13 +15,11 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
function Test({ setCardPaymentContext }) {
|
||||
return (
|
||||
<div>
|
||||
<CardPaymentModalComponent />
|
||||
<CardPaymentModalContainer />
|
||||
<Button
|
||||
onClick={() =>
|
||||
setCardPaymentContext({
|
||||
context: {
|
||||
test: "Test String",
|
||||
},
|
||||
context: {},
|
||||
})
|
||||
}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user