Skip to content

Conversation

@christineoo
Copy link
Contributor

@christineoo christineoo commented Oct 16, 2019

This refactor is part of #2621.
@Saeris @christianalfoni

What kind of change does this PR introduce?

  • 88daf55: Renames app\pages\common\Modals\PreferencesModal\StorageManagementModal/index.js -> app\pages\common\Modals\PreferencesModal\StorageManagementModal/index.tsx
  • 5d3f15d: Removes use of inject and observer and replaces them with useOvermind() to pass state to components.
  • aa3de4c: Update import statement

What is the current behavior?

Currently, the state is passed to the components through app/componentConnectors's inject and observer functions.

What is the new behavior?

The state is now retrieved from the Overmind instance.

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

  • yarn lint
  • yarn test
  • yarn start

Checklist

  • Documentation
  • Testing
  • Ready to be merged
  • Added myself to contributors table

Copy link
Contributor

@christianalfoni christianalfoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great! 👍 We actually found some other bugs when testing this PR so that is great, creating a separate PR to fix those. Awesome work 😄 Also great you catched the required "import" change!

Tested:

  • Open storage management
  • Check that text is correct
  • Delete/add files (currently broken by something else, creating separate PR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧠 Overmind Indicates that this is related to the app's State Management 🔨 Refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants