Skip to content
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

Merged
merged 6 commits into from
Apr 28, 2020
Merged

Use hooks for redux #181

merged 6 commits into from
Apr 28, 2020

Conversation

Granipouss
Copy link
Contributor

@Granipouss Granipouss commented Apr 24, 2020

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation content changes

Other information

Issue Number: N/A

Fixes : #180

@@ -1,26 +1,5 @@
import { injectIntl } from 'react-intl';
Copy link
Contributor

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';
Copy link
Contributor

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,
Copy link
Contributor

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

@fargito
Copy link
Contributor

fargito commented Apr 28, 2020

Thanks for the hard work here ! It is a great simplification !

@sonarcloud
Copy link

sonarcloud bot commented Apr 28, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
7.5% 7.5% Duplication

@fargito fargito merged commit 9763247 into master Apr 28, 2020
@fargito fargito deleted the more-hooks branch April 28, 2020 21:02
@fargito
Copy link
Contributor

fargito commented Apr 28, 2020

@all-contributors please add @Granipouss for code!

@allcontributors
Copy link
Contributor

@fargito

I've put up a pull request to add @Granipouss! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor redux and Saga
2 participants