TreatDrug.js 457 B

1234567891011121314151617181920212223
  1. import React from 'react';
  2. import { connect } from 'react-redux';
  3. import TreatDrug from '@components/TreatDrug';
  4. // import { ADD_DRUG } from '@stroe/types/treatDrug.js';
  5. function mapStateToProps(state){
  6. return {
  7. treatDrugList: state.treatDrug
  8. }
  9. }
  10. function mapDispatchToProps(dispatch) {
  11. return {
  12. }
  13. }
  14. const TreatDrugContainer = connect(
  15. mapStateToProps,
  16. mapDispatchToProps
  17. )(TreatDrug)
  18. export default TreatDrugContainer;