-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use hooks for redux #181
Use hooks for redux #181
Conversation
@@ -1,26 +1,5 @@ | |||
import { injectIntl } from 'react-intl'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can just delete this file and edit the index.ts
to export default from ./EnvironmentSettings
@@ -1,26 +1,5 @@ | |||
import { injectIntl } from 'react-intl'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can also delete this file
@@ -30,6 +21,6 @@ const mapDispatchToProps = (dispatch: Dispatch) => ({ | |||
}); | |||
|
|||
export default connect( | |||
mapStateToProps, | |||
undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null
is better here I think
Thanks for the hard work here ! It is a great simplification ! |
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
@all-contributors please add @Granipouss for code! |
I've put up a pull request to add @Granipouss! 🎉 |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Other information
Issue Number: N/A
Fixes : #180