From 7b70797d3aef7eeca155c400f51669c1eb0ca9d0 Mon Sep 17 00:00:00 2001 From: Conor Date: Wed, 20 Jul 2022 11:41:41 -0400 Subject: [PATCH] Chore: Replace recompose (#27) * Replace recompose * Import from the correct library * Specify "required" peer dependencies * Bump patch --- ionic-template/views/SubSectionShow.js | 2 +- ionic-template/views/SubSections.js | 2 +- package.json | 7 +++++-- template/views/SubSectionShow.js | 2 +- template/views/SubSections.js | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ionic-template/views/SubSectionShow.js b/ionic-template/views/SubSectionShow.js index 4cfc15a..dd509d0 100644 --- a/ionic-template/views/SubSectionShow.js +++ b/ionic-template/views/SubSectionShow.js @@ -1,6 +1,6 @@ import React /*, { useEffect } */ from 'react' // import PropTypes from 'prop-types' -import { compose } from 'recompose' +import { compose } from 'redux' import { connect } from 'react-redux' import { useParams } from 'react-router-dom' import { IonItem, IonLabel, IonList, IonListHeader } from '@ionic/react' diff --git a/ionic-template/views/SubSections.js b/ionic-template/views/SubSections.js index d671a82..849d199 100644 --- a/ionic-template/views/SubSections.js +++ b/ionic-template/views/SubSections.js @@ -1,7 +1,7 @@ import React /*, { useEffect } */ from 'react' // import PropTypes from 'prop-types' // import * as Types from 'types' -import { compose } from 'recompose' +import { compose } from 'redux' import { connect } from 'react-redux' import { IonItem, IonLabel, IonList, IonListHeader } from '@ionic/react' // import { LoadingModal } from 'components' diff --git a/package.json b/package.json index 1ccf35e..2e7d9ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@launchpadlab/lp-subsection-generator", - "version": "7.1.0", + "version": "7.1.1", "description": "", "main": "index.js", "engines": { @@ -30,7 +30,10 @@ }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0", - "react-router-dom": "^4.0.0 || ^5.0.0" + "react-redux": "^7.2.8", + "react-router-dom": "^4.0.0 || ^5.0.0", + "redux": "^4.1.2", + "redux-actions": "^2.6.5" }, "optionalDependencies": { "@ionic/react": "^5.0.0" diff --git a/template/views/SubSectionShow.js b/template/views/SubSectionShow.js index 4c6d470..15d56e5 100644 --- a/template/views/SubSectionShow.js +++ b/template/views/SubSectionShow.js @@ -1,6 +1,6 @@ import React /*, { useEffect } */ from 'react' // import PropTypes from 'prop-types' -import { compose } from 'recompose' +import { compose } from 'redux' import { connect } from 'react-redux' // import { Spinner } from 'lp-components' // import { connectParams } from 'lp-hoc' diff --git a/template/views/SubSections.js b/template/views/SubSections.js index ea95fc8..05ca55f 100644 --- a/template/views/SubSections.js +++ b/template/views/SubSections.js @@ -1,7 +1,7 @@ import React /*, { useEffect } */ from 'react' // import PropTypes from 'prop-types' // import * as Types from 'types' -import { compose } from 'recompose' +import { compose } from 'redux' import { connect } from 'react-redux' // import { Spinner } from 'lp-components' // import { selectors } from '../reducer'