Skip to content

Conversation

@Avi98
Copy link

@Avi98 Avi98 commented Oct 21, 2019

What kind of change does this PR introduce?

Refactors code as a part of hacktoberfest mentioned in 2621 @SaraVieira, @Saeris

What is the current behavior?

/app/pages/common/Modals/index.js using Cerebral

What is the new behavior?

/app/pages/common/Modals/index.js using overmind

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

  1. yarn test
  2. yarn lint
  3. yarn typecheck

Checklist

  • Documentation
  • [ X] Testing
  • [ X] Ready to be merged
  • Added myself to contributors table

@lbogdan lbogdan temporarily deployed to pr2902 October 21, 2019 21:28 Inactive
@lbogdan
Copy link
Contributor

lbogdan commented Oct 21, 2019

Build for latest commit bed89b4 is at https://pr2902.build.csb.dev/s/new.

};

export const modalClosed: Action = ({ state, effects }) => {
export const modalClosed: Action<any> = ({ state, effects }) => {
Copy link
Author

Choose a reason for hiding this comment

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

@SaraVieira not sure if it's the right way

return (
<ThemeProvider
theme={{
templateColor: templateColor(sandbox, templateDef),
Copy link
Author

Choose a reason for hiding this comment

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

@SaraVieira also need your inputs here as types for templateColor's second argument and templateDef are incompatible.

@lbogdan lbogdan temporarily deployed to pr2902 October 25, 2019 22:13 Inactive
@lbogdan lbogdan temporarily deployed to pr2902 October 25, 2019 22:51 Inactive
@lbogdan lbogdan temporarily deployed to pr2902 October 30, 2019 18:27 Inactive
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.

Excellent stuff! About the typings it needs some review no matter, so this is perfectly okay for now 😄

Tested:

  • Opening/closing several modals

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